public interface FireworkRocketData extends DataManipulator<FireworkRocketData,ImmutableFireworkRocketData>
Modifier and Type | Method and Description |
---|---|
MutableBoundedValue<Integer> |
flightModifier()
Gets the flight modifier for this firework.
|
asImmutable, copy, fill, fill, from, set, set, set, set, transform
getContentVersion, toContainer
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.
Keys.FIREWORK_FLIGHT_MODIFIER