public interface FireworkEffectBuilder
FireworkEffect
s.Modifier and Type | Method and Description |
---|---|
FireworkEffect |
build()
Builds a
FireworkEffect based on the current state of this
builder. |
FireworkEffectBuilder |
color(Color color)
Adds the given
Color to the initial explosion colors. |
FireworkEffectBuilder |
colors(Color... colors)
Adds the given
Color s to the initial explosion colors. |
FireworkEffectBuilder |
colors(Iterable<Color> colors)
Adds the given
Color s to the initial explosion colors. |
FireworkEffectBuilder |
fade(Color color)
Adds the given
Color to the fade colors. |
FireworkEffectBuilder |
fades(Color... colors)
Adds the given
Color s to the fade colors. |
FireworkEffectBuilder |
fades(Iterable<Color> colors)
Adds the given
Color s to the fade colors. |
FireworkEffectBuilder |
flicker(boolean flicker)
Sets whether the
FireworkEffect is going to flicker
on explosion. |
FireworkEffectBuilder |
reset()
Resets this builder to a clean state.
|
FireworkEffectBuilder |
shape(FireworkShape shape)
Sets the shape of the
FireworkEffect explosion. |
FireworkEffectBuilder |
trail(boolean trail)
Sets whether the
FireworkEffect is going to have a trail
or not. |
FireworkEffectBuilder trail(boolean trail)
FireworkEffect
is going to have a trail
or not.trail
- Whether the firework will have a trailFireworkEffectBuilder flicker(boolean flicker)
FireworkEffect
is going to flicker
on explosion.flicker
- Whether the explosion will flickerFireworkEffectBuilder 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 explosionFireworkEffectBuilder colors(Color... colors)
Color
s 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 explosionFireworkEffectBuilder colors(Iterable<Color> colors)
Color
s 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 explosionFireworkEffectBuilder 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 fadeFireworkEffectBuilder fades(Color... colors)
Color
s to the fade colors.
Colors can be mixed and matched in the order they are added in.
colors
- The colors to add to the fadeFireworkEffectBuilder fades(Iterable<Color> colors)
Color
s to the fade colors.
Colors can be mixed and matched in the order they are added in.
colors
- The colors to add to the fadeFireworkEffectBuilder shape(FireworkShape shape)
FireworkEffect
explosion.shape
- The shape of the explosionFireworkEffect build()
FireworkEffect
based on the current state of this
builder.FireworkEffectBuilder reset()