public interface FireworkEffect extends DataSerializable
FireworkEffect
s are immutable once created. To change one
or create one, use FireworkEffectBuilder
.
Modifier and Type | Method and Description |
---|---|
boolean |
flickers()
Gets whether this
FireworkEffect will flicker when
detonated. |
List<Color> |
getColors()
Gets the ordered list of colors.
|
List<Color> |
getFadeColors()
Gets the ordered list of colors.
|
FireworkShape |
getShape()
Gets the explosion shape.
|
boolean |
hasTrail()
Gets whether this
FireworkEffect will have a trail
when detonated. |
toContainer
boolean flickers()
FireworkEffect
will flicker when
detonated.boolean hasTrail()
FireworkEffect
will have a trail
when detonated.List<Color> getColors()
In some implementations, the order of colors defines the colors showing from edge to center of the firework explosion.
List<Color> getFadeColors()
Normally in vanilla, the order of colors defines the colors showing from edge to center of the firework explosion.
FireworkShape getShape()