net.minecraft.util

public enum DyeColor

implements StringIdentifiable

net.minecraft.world.item.DyeColor
net.minecraft.class_1767
net.minecraft.util.DyeColor

Enum constant summary

Enum Constant
WHITE
field_7952
WHITE
ORANGE
field_7946
ORANGE
MAGENTA
field_7958
MAGENTA
LIGHT_BLUE
field_7951
LIGHT_BLUE
YELLOW
field_7947
YELLOW
LIME
field_7961
LIME
PINK
field_7954
PINK
GRAY
field_7944
GRAY
LIGHT_GRAY
field_7967
LIGHT_GRAY
CYAN
field_7955
CYAN
PURPLE
field_7945
PURPLE
BLUE
field_7966
BLUE
BROWN
field_7957
BROWN
GREEN
field_7942
GREEN
RED
field_7964
RED
BLACK
field_7963
BLACK

Field summary

Modifier and TypeField
public static final List<DyeColor>
VALUES
field_1_22
VALUES
public static final StringIdentifiable$EnumCodec<DyeColor>
CODEC
field_41600
CODEC
public static final EnumPacketCodec<DyeColor>
STREAM_CODEC
field_49259
PACKET_CODEC
public static final com.mojang.serialization.Codec<DyeColor>
LEGACY_ID_CODEC
field_56666
INDEX_CODEC
private final int
id
field_7965
index
private final String
name
field_7948
id
private static final DyeColor[]
$VALUES

Constructor summary

ModifierConstructor
private (int $enum$name, String $enum$ordinal)

Method summary

Modifier and TypeMethod
public int
getId()
method_7789()
getIndex()
public String
getName()
method_7792()
getId()
public static DyeColor
byId(int id)
method_7791(int arg0)
byIndex(int index)
public static DyeColor
byName(String name, DyeColor def)
method_7793(String arg0, class_1767 arg1)
byId(String id, DyeColor fallback)
public String
getSerializedName()
method_15434()
asString()
public static DyeColor
getMixedColor(ServerLevel level, DyeColor dyeColor1, DyeColor dyeColor2)
method_65358(class_3218 arg0, class_1767 arg1, class_1767 arg2)
mixOrChooseRandomly(ServerWorld world, DyeColor color1, DyeColor color2)
private static DyeColor
findColorMixInRecipes(ServerLevel level, DyeColor dyeColor1, DyeColor dyeColor2)
method_1_1235(class_3218 arg0, class_1767 arg1, class_1767 arg2)
mix(ServerWorld world, DyeColor color1, DyeColor color2)
private static DyeColor[]
$values()
method_36676()
method_36676()
private static Byte
lambda$static$0(DyeColor arg0)
method_67674(class_1767 arg0)
method_67674(DyeColor color)