net.minecraft.world.item.component

public record Fireworks

implements TooltipProvider

daf
net.minecraft.world.item.component.Fireworks
net.minecraft.class_9284
net.minecraft.component.type.FireworksComponent
net.minecraft.world.item.component.Fireworks

Field summary

Modifier and TypeField
private final int
d
flightDuration
comp_2391
flightDuration
private final List<FireworkExplosion>
e
explosions
comp_2392
explosions
public static final int
a
MAX_EXPLOSIONS
field_49325
MAX_EXPLOSIONS
public static final com.mojang.serialization.Codec<Fireworks>
b
CODEC
field_49323
CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf, Fireworks>
c
STREAM_CODEC
field_49324
PACKET_CODEC

Constructor summary

ModifierConstructor
public (int arg0, List<FireworkExplosion> arg1)

Method summary

Modifier and TypeMethod
public void
a(cxl$b arg0, Consumer<xv> arg1, czh arg2)
addToTooltip(Item$TooltipContext arg0, Consumer<Component> arg1, TooltipFlag arg2)
method_57409(class_1792$class_9635 arg0, Consumer<class_2561> arg1, class_1836 arg2)
appendTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipType arg2)
public int
a()
flightDuration()
comp_2391()
flightDuration()
public List<FireworkExplosion>
b()
explosions()
comp_2392()
explosions()