public interface ImmutableFireworkData extends ImmutableDataManipulator<ImmutableFireworkData,FireworkData>
ImmutableDataManipulator
handling the various
FireworkEffect
s associated with a Firework
and
an ItemStack
that is of the ItemTypes.FIREWORKS
.Modifier and Type | Method and Description |
---|---|
ImmutableListValue<FireworkEffect> |
effects()
Gets the
ImmutableListValue of FireworkEffect s. |
ImmutableBoundedValue<Integer> |
flightModifier()
Gets the
ImmutableBoundedValue for the flight modifier. |
asMutable, copy, with, with
compareTo
toContainer
ImmutableListValue<FireworkEffect> effects()
ImmutableListValue
of FireworkEffect
s.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.