public interface FireworkData extends DataManipulator<FireworkData,ImmutableFireworkData>
Modifier and Type | Method and Description |
---|---|
ListValue<FireworkEffect> |
effects()
Gets the
ListValue of FireworkEffect s. |
MutableBoundedValue<Integer> |
flightModifier()
Gets the flight modifier for this firework.
|
asImmutable, copy, fill, fill, from, set, set, set, set, transform
compareTo
toContainer
ListValue<FireworkEffect> effects()
ListValue
of FireworkEffect
s.MutableBoundedValue<Integer> flightModifier()
Flight modifiers are tiered ranks of flight duration. Generally, the modifier is used to calculate the fuse time of a firework when launched. This can be approximated by multiplying 10 and the modifier, and adding a random number between 0 and 13. Again, this is a general approximation of what vanilla Minecraft performs.