Interface FireworkEffect
- All Superinterfaces:
DataSerializable
Represents a firework explosion.
FireworkEffects are immutable once created. To change one
or create one, use FireworkEffect.Builder.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FireworkEffect.Builderbuilder()Creates a newFireworkEffect.Builderto build aFireworkEffect.colors()Gets the ordered list of colors.Gets the ordered list of colors.booleanflickers()Gets whether thisFireworkEffectwill flicker when detonated.booleanhasTrail()Gets whether thisFireworkEffectwill have a trail when detonated.shape()Gets the explosion shape.Methods inherited from interface DataSerializable
contentVersion, toContainer, toView
-
Method Details
-
builder
Creates a newFireworkEffect.Builderto build aFireworkEffect.- Returns:
- The new builder
-
flickers
boolean flickers()Gets whether thisFireworkEffectwill flicker when detonated.- Returns:
- Whether this effect will flicker
-
hasTrail
boolean hasTrail()Gets whether thisFireworkEffectwill have a trail when detonated.- Returns:
- Whether this effect will have a trail
-
colors
-
fadeColors
-
shape
-