net.minecraft.world.item.component

public record DyedItemColor

implements TooltipProvider

dad
net.minecraft.world.item.component.DyedItemColor
net.minecraft.class_9282
net.minecraft.component.type.DyedColorComponent
net.minecraft.world.item.component.DyedItemColor

Field summary

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

Constructor summary

ModifierConstructor
public (int arg0, boolean arg1)

Method summary

Modifier and TypeMethod
public static int
a(cxp arg0, int arg1)
getOrDefault(ItemStack arg0, int arg1)
method_57470(class_1799 arg0, int arg1)
getColor(ItemStack stack, int defaultColor)
public static ItemStack
a(cxp arg0, List<cwn> arg1)
applyDyes(ItemStack arg0, List<DyeItem> arg1)
method_57471(class_1799 arg0, List<class_1769> arg1)
setColor(ItemStack stack, List<DyeItem> dyes)
public void
a(cxl$b arg0, Consumer<xv> arg1, czh 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 DyedItemColor
a(boolean arg0)
withTooltip(boolean arg0)
method_58422(boolean arg0)
withShowInTooltip(boolean showInTooltip)
public int
a()
rgb()
comp_2384()
rgb()
public boolean
b()
showInTooltip()
comp_2385()
showInTooltip()