public static interface FireworkEffect.Builder extends ResettableBuilder<FireworkEffect,FireworkEffect.Builder>
| Modifier and Type | Method and Description |
|---|---|
FireworkEffect |
build()
Builds a
FireworkEffect based on the current state of this
builder. |
FireworkEffect.Builder |
color(Color color)
Adds the given
Color to the initial explosion colors. |
FireworkEffect.Builder |
colors(Color... colors)
Adds the given
Colors to the initial explosion colors. |
FireworkEffect.Builder |
colors(Iterable<Color> colors)
Adds the given
Colors to the initial explosion colors. |
FireworkEffect.Builder |
fade(Color color)
Adds the given
Color to the fade colors. |
FireworkEffect.Builder |
fades(Color... colors)
Adds the given
Colors to the fade colors. |
FireworkEffect.Builder |
fades(Iterable<Color> colors)
Adds the given
Colors to the fade colors. |
FireworkEffect.Builder |
flicker(boolean flicker)
Sets whether the
FireworkEffect is going to flicker
on explosion. |
FireworkEffect.Builder |
shape(FireworkShape shape)
Sets the shape of the
FireworkEffect explosion. |
FireworkEffect.Builder |
trail(boolean trail)
Sets whether the
FireworkEffect is going to have a trail
or not. |
from, resetFireworkEffect.Builder trail(boolean trail)
FireworkEffect is going to have a trail
or not.trail - Whether the firework will have a trailFireworkEffect.Builder flicker(boolean flicker)
FireworkEffect is going to flicker
on explosion.flicker - Whether the explosion will flickerFireworkEffect.Builder color(Color color)
Color to the initial explosion colors.
Colors can be mixed and matched in the order they are added in.
color - The color to add to the explosionFireworkEffect.Builder colors(Color... colors)
Colors to the initial explosion colors.
Colors can be mixed and matched in the order they are added in.
colors - The colors to add to the explosionFireworkEffect.Builder colors(Iterable<Color> colors)
Colors to the initial explosion colors.
Colors can be mixed and matched in the order they are added in.
colors - The colors to add to the explosionFireworkEffect.Builder fade(Color color)
Color to the fade colors.
Colors can be mixed and matched in the order they are added in.
color - The colors to add to the fadeFireworkEffect.Builder fades(Color... colors)
Colors to the fade colors.
Colors can be mixed and matched in the order they are added in.
colors - The colors to add to the fadeFireworkEffect.Builder fades(Iterable<Color> colors)
Colors to the fade colors.
Colors can be mixed and matched in the order they are added in.
colors - The colors to add to the fadeFireworkEffect.Builder shape(FireworkShape shape)
FireworkEffect explosion.shape - The shape of the explosionFireworkEffect build()
FireworkEffect based on the current state of this
builder.