net.minecraft.world.item.component

public record Fireworks

implements TooltipProvider

cxm
net.minecraft.world.item.component.Fireworks
net.minecraft.class_9284
net.minecraft.component.type.FireworksComponent
net.minecraft.src.C_313625_
net.minecraft.world.item.component.Fireworks

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
a(cul$b arg0, Consumer<wz> arg1, cwm 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)
m_319025_(C_1381_$C_313602_ p_335967_, Consumer<C_4996_> p_328360_, C_1431_ arg2)
public int
a()
flightDuration()
comp_2391()
flightDuration()
f_317050_()
public List<FireworkExplosion>
b()
explosions()
comp_2392()
explosions()
f_314926_()