Package org.spongepowered.api.item
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 SummaryNested Classes
- 
Method SummaryModifier 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 org.spongepowered.api.data.persistence.DataSerializablecontentVersion, toContainer
- 
Method Details- 
builderCreates a newFireworkEffect.Builderto build aFireworkEffect.- Returns:
- The new builder
 
- 
flickersboolean flickers()Gets whether thisFireworkEffectwill flicker when detonated.- Returns:
- Whether this effect will flicker
 
- 
hasTrailboolean hasTrail()Gets whether thisFireworkEffectwill have a trail when detonated.- Returns:
- Whether this effect will have a trail
 
- 
colorsGets the ordered list of colors.In some implementations, the order of colors defines the colors showing from edge to center of the firework explosion. - Returns:
- The list of colors
 
- 
fadeColorsGets the ordered list of colors.Normally in vanilla, the order of colors defines the colors showing from edge to center of the firework explosion. - Returns:
- The list of colors
 
- 
shapeFireworkShape shape()Gets the explosion shape.- Returns:
- The explosion shape
 
 
-