net.minecraft.world.item.component

public record DyedItemColor

implements TooltipProvider

cxk
net.minecraft.world.item.component.DyedItemColor
net.minecraft.class_9282
net.minecraft.component.type.DyedColorComponent
net.minecraft.src.C_313801_
net.minecraft.world.item.component.DyedItemColor

Field summary

Modifier and TypeField
private final int
d
rgb
comp_2384
rgb
f_314370_
private final boolean
e
showInTooltip
comp_2385
showInTooltip
f_314022_
private static final com.mojang.serialization.Codec<DyedItemColor>
f
FULL_CODEC
field_49750
BASE_CODEC
f_315345_
public static final com.mojang.serialization.Codec<DyedItemColor>
a
CODEC
field_49312
CODEC
f_316765_
public static final StreamCodec<io.netty.buffer.ByteBuf, DyedItemColor>
b
STREAM_CODEC
field_49313
PACKET_CODEC
f_314233_
public static final int
c
LEATHER_COLOR
field_49314
DEFAULT_COLOR
f_315887_

Constructor summary

ModifierConstructor
public (int showInTooltip, boolean arg1)

Method summary

Modifier and TypeMethod
public static int
a(cuq arg0, int arg1)
getOrDefault(ItemStack arg0, int arg1)
method_57470(class_1799 arg0, int arg1)
getColor(ItemStack stack, int defaultColor)
m_322889_(C_1391_ p_327803_, int p_334743_)
public static ItemStack
a(cuq arg0, List<ctj> arg1)
applyDyes(ItemStack arg0, List<DyeItem> arg1)
method_57471(class_1799 arg0, List<class_1769> arg1)
setColor(ItemStack stack, List<DyeItem> dyes)
m_323436_(C_1391_ p_333863_, List<C_1354_> p_329585_)
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_332053_, Consumer<C_4996_> p_329372_, C_1431_ arg2)
public DyedItemColor
a(boolean arg0)
withTooltip(boolean arg0)
method_58422(boolean arg0)
withShowInTooltip(boolean showInTooltip)
m_320147_(boolean arg0)
public int
a()
rgb()
comp_2384()
rgb()
f_314370_()
public boolean
b()
showInTooltip()
comp_2385()
showInTooltip()
f_314022_()