public interface ImmutableFireworkRocketData extends ImmutableDataManipulator<ImmutableFireworkRocketData,FireworkRocketData>
ImmutableDataManipulator
representing the flight modifier of a
Firework
or ItemTypes.FIREWORKS
item.Modifier and Type | Method and Description |
---|---|
ImmutableBoundedValue<Integer> |
flightModifier()
Gets the
ImmutableBoundedValue for the flight modifier. |
asMutable, copy, with, with
getContentVersion, toContainer
ImmutableBoundedValue<Integer> flightModifier()
ImmutableBoundedValue
for the flight modifier.
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.