net.minecraft.component.type

public record FireworksComponent

implements TooltipAppender

dfk
net.minecraft.world.item.component.Fireworks
net.minecraft.class_9284
net.minecraft.component.type.FireworksComponent
net.minecraft.unmapped.C_gzacfpmb
net.minecraft.component.type.FireworksComponent
net.minecraft.src.C_313625_

Field summary

Modifier and TypeField
private final int
d
flightDuration
comp_2391
flightDuration
f_aqfphtjz
flightDuration
f_317050_
private final List<FireworkExplosionComponent>
e
explosions
comp_2392
explosions
f_stgsyrhr
explosions
f_314926_
public static final int
a
MAX_EXPLOSIONS
field_49325
MAX_EXPLOSIONS
f_nasmadkv
MAX_EXPLOSIONS
f_317122_
public static final com.mojang.serialization.Codec<FireworksComponent>
b
CODEC
field_49323
CODEC
f_mycayywm
CODEC
f_316251_
public static final PacketCodec<io.netty.buffer.ByteBuf, FireworksComponent>
c
STREAM_CODEC
field_49324
PACKET_CODEC
f_aijsfgob
PACKET_CODEC
f_314560_

Constructor summary

ModifierConstructor
public (int flightDuration, List<FireworkExplosionComponent> explosions)

Method summary

Modifier and TypeMethod
public void
a(dcr$b o, Consumer<xo> o, dek o, kl arg3)
addToTooltip(Item$TooltipContext arg0, Consumer<Component> arg1, TooltipFlag arg2, DataComponentGetter arg3)
method_57409(class_1792$class_9635 arg0, Consumer<class_2561> arg1, class_1836 arg2, class_9473 arg3)
appendTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipType arg2, ComponentsAccess arg3)
m_eqoeoqpg(C_vorddnax$C_rdhfmrgz arg0, Consumer<C_rdaqiwdt> arg1, C_taebrtdw arg2, C_hmcnusfu arg3)
appendToTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipConfig arg2, ComponentAccess arg3)
m_319025_(C_1381_$C_313602_ p_335967_, Consumer<C_4996_> p_328360_, C_1431_ p_396195_, C_379187_ arg3)
private static void
a(Consumer<xo> o, dfj o, int o)
addExplosionTooltip(Consumer<Component> arg0, FireworkExplosion arg1, int arg2)
method_67537(Consumer<class_2561> arg0, class_9283 arg1, int arg2)
appendExplosionTooltip(Consumer<Text> textConsumer, FireworkExplosionComponent explosionComponent, int stars)
m_yczxahkj(Consumer<C_rdaqiwdt> arg0, C_ibwugxba arg1, int arg2)
m_yczxahkj(Consumer<Text> arg0, FireworkExplosionComponent arg1, int i)
m_388577_(Consumer<C_4996_> p_395079_, C_313884_ p_396802_, int p_392383_)
public int
a()
flightDuration()
comp_2391()
flightDuration()
m_qwvtmieo()
flightDuration()
f_317050_()
public List<FireworkExplosionComponent>
b()
explosions()
comp_2392()
explosions()
m_twfvjvlc()
explosions()
f_314926_()