net.minecraft.world.item.component

public record FireworkExplosion

implements TooltipProvider

czf
net.minecraft.world.item.component.FireworkExplosion
net.minecraft.class_9283
net.minecraft.component.type.FireworkExplosionComponent
net.minecraft.world.item.component.FireworkExplosion

Field summary

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

Constructor summary

ModifierConstructor
public (FireworkExplosion$Shape arg0, it.unimi.dsi.fastutil.ints.IntList arg1, it.unimi.dsi.fastutil.ints.IntList arg2, boolean arg3, boolean arg4)

Method summary

Modifier and TypeMethod
public void
a(cwm$b arg0, Consumer<wp> arg1, cyi 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 void
a(Consumer<wp> arg0)
addShapeNameTooltip(Consumer<Component> arg0)
method_57475(Consumer<class_2561> arg0)
appendShapeTooltip(Consumer<Text> textConsumer)
public void
b(Consumer<wp> arg0)
addAdditionalTooltip(Consumer<Component> arg0)
method_57477(Consumer<class_2561> arg0)
appendOptionalTooltip(Consumer<Text> textConsumer)
private static Component
a(xd 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)
private static Component
a(int arg0)
getColorName(int arg0)
method_57472(int arg0)
getColorText(int color)
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)
public FireworkExplosion$Shape
a()
shape()
comp_2386()
shape()
public it.unimi.dsi.fastutil.ints.IntList
b()
colors()
comp_2387()
colors()
public it.unimi.dsi.fastutil.ints.IntList
c()
fadeColors()
comp_2388()
fadeColors()
public boolean
d()
hasTrail()
comp_2389()
hasTrail()
public boolean
e()
hasTwinkle()
comp_2390()
hasTwinkle()