net.minecraft.world.item.component

public record DyedItemColor

implements TooltipProvider

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

Field summary

Modifier and TypeField
private final int
d
rgb
comp_2384
rgb
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)

Method summary

Modifier and TypeMethod
public static int
a(cys arg0, int arg1)
getOrDefault(ItemStack arg0, int arg1)
method_57470(class_1799 arg0, int arg1)
getColor(ItemStack stack, int defaultColor)
public static ItemStack
a(cys arg0, List<cxr> 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(cyo$b arg0, Consumer<ww> arg1, dah arg2, ke 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)
public int
a()
rgb()
comp_2384()
rgb()