net.minecraft.world.item.component

public record FireworkExplosion

implements TooltipProvider

cxk
net.minecraft.world.item.component.FireworkExplosion
net.minecraft.class_9283
net.minecraft.component.type.FireworkExplosionComponent
net.minecraft.src.C_313884_
net.minecraft.world.item.component.FireworkExplosion

Field summary

Modifier and TypeField
private final FireworkExplosion$Shape
e
shape
comp_2386
shape
f_316547_
private final it.unimi.dsi.fastutil.ints.IntList
f
colors
comp_2387
colors
f_316201_
private final it.unimi.dsi.fastutil.ints.IntList
g
fadeColors
comp_2388
fadeColors
f_314743_
private final boolean
h
hasTrail
comp_2389
hasTrail
f_316522_
private final boolean
i
hasTwinkle
comp_2390
hasTwinkle
f_316285_
public static final FireworkExplosion
a
DEFAULT
field_49315
DEFAULT
f_316800_
public static final com.mojang.serialization.Codec<it.unimi.dsi.fastutil.ints.IntList>
b
COLOR_LIST_CODEC
field_49318
COLORS_CODEC
f_314508_
public static final com.mojang.serialization.Codec<FireworkExplosion>
c
CODEC
field_49316
CODEC
f_315661_
private static final StreamCodec<io.netty.buffer.ByteBuf, it.unimi.dsi.fastutil.ints.IntList>
j
COLOR_LIST_STREAM_CODEC
field_49319
COLORS_PACKET_CODEC
f_316103_
public static final StreamCodec<io.netty.buffer.ByteBuf, FireworkExplosion>
d
STREAM_CODEC
field_49317
PACKET_CODEC
f_316358_
private static final Component
k
CUSTOM_COLOR_NAME
field_49320
CUSTOM_COLOR_TEXT
f_315548_

Constructor summary

ModifierConstructor
public (FireworkExplosion$Shape colors, it.unimi.dsi.fastutil.ints.IntList fadeColors, it.unimi.dsi.fastutil.ints.IntList hasTrail, boolean hasTwinkle, boolean arg4)

Method summary

Modifier and TypeMethod
public void
a(cum$b arg0, Consumer<xp> arg1, cwk 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_333224_, Consumer<C_4996_> p_335960_, C_1431_ arg2)
public void
a(Consumer<xp> arg0)
addShapeNameTooltip(Consumer<Component> arg0)
method_57475(Consumer<class_2561> arg0)
appendShapeTooltip(Consumer<Text> textConsumer)
m_321829_(Consumer<C_4996_> arg0)
public void
b(Consumer<xp> arg0)
addAdditionalTooltip(Consumer<Component> arg0)
method_57477(Consumer<class_2561> arg0)
appendOptionalTooltip(Consumer<Text> textConsumer)
m_323234_(Consumer<C_4996_> arg0)
private static Component
a(yd arg0, it.unimi.dsi.fastutil.ints.IntList arg1)
appendColors(MutableComponent arg0, it.unimi.dsi.fastutil.ints.IntList arg1)
method_57476(class_5250 arg0, it.unimi.dsi.fastutil.ints.IntList arg1)
appendColorsTooltipText(MutableText text, it.unimi.dsi.fastutil.ints.IntList colors)
m_322644_(C_5012_ p_333538_, it.unimi.dsi.fastutil.ints.IntList p_333652_)
private static Component
a(int arg0)
getColorName(int arg0)
method_57472(int arg0)
getColorText(int color)
m_319213_(int p_333961_)
public FireworkExplosion
a(it.unimi.dsi.fastutil.ints.IntList arg0)
withFadeColors(it.unimi.dsi.fastutil.ints.IntList arg0)
method_57474(it.unimi.dsi.fastutil.ints.IntList arg0)
withFadeColors(it.unimi.dsi.fastutil.ints.IntList fadeColors)
m_319637_(it.unimi.dsi.fastutil.ints.IntList arg0)
public FireworkExplosion$Shape
a()
shape()
comp_2386()
shape()
f_316547_()
public it.unimi.dsi.fastutil.ints.IntList
b()
colors()
comp_2387()
colors()
f_316201_()
public it.unimi.dsi.fastutil.ints.IntList
c()
fadeColors()
comp_2388()
fadeColors()
f_314743_()
public boolean
d()
hasTrail()
comp_2389()
hasTrail()
f_316522_()
public boolean
e()
hasTwinkle()
comp_2390()
hasTwinkle()
f_316285_()