public interface FireworkEffect extends DataSerializable
FireworkEffects are immutable once created. To change one
or create one, use FireworkEffect.Builder.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
FireworkEffect.Builder |
| Modifier and Type | Method and Description |
|---|---|
static FireworkEffect.Builder |
builder()
Creates a new
FireworkEffect.Builder to build a FireworkEffect. |
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. |
getContentVersion, toContainerstatic FireworkEffect.Builder builder()
FireworkEffect.Builder to build a FireworkEffect.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()