Package net.minecraft.entity.passive
Enum Class HorseColor
- All Implemented Interfaces:
Serializable,Comparable<HorseColor>,Constable,StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/entity/passive/HorseColorintermediary net/minecraft/class_5149official cwm
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<HorseColor> private final Stringprivate final intprivate static final IntFunction<HorseColor> static final PacketCodec<ByteBuf, HorseColor> Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.static HorseColorbyIndex(int index) intgetIndex()static HorseColorReturns the enum constant of this class with the specified name.static HorseColor[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WHITE
- Mappings:
Namespace Name Mixin selector named WHITELnet/minecraft/entity/passive/HorseColor;WHITE:Lnet/minecraft/entity/passive/HorseColor;intermediary field_23816Lnet/minecraft/class_5149;field_23816:Lnet/minecraft/class_5149;official aLcwm;a:Lcwm;
-
CREAMY
- Mappings:
Namespace Name Mixin selector named CREAMYLnet/minecraft/entity/passive/HorseColor;CREAMY:Lnet/minecraft/entity/passive/HorseColor;intermediary field_23817Lnet/minecraft/class_5149;field_23817:Lnet/minecraft/class_5149;official bLcwm;b:Lcwm;
-
CHESTNUT
- Mappings:
Namespace Name Mixin selector named CHESTNUTLnet/minecraft/entity/passive/HorseColor;CHESTNUT:Lnet/minecraft/entity/passive/HorseColor;intermediary field_23818Lnet/minecraft/class_5149;field_23818:Lnet/minecraft/class_5149;official cLcwm;c:Lcwm;
-
BROWN
- Mappings:
Namespace Name Mixin selector named BROWNLnet/minecraft/entity/passive/HorseColor;BROWN:Lnet/minecraft/entity/passive/HorseColor;intermediary field_23819Lnet/minecraft/class_5149;field_23819:Lnet/minecraft/class_5149;official dLcwm;d:Lcwm;
-
BLACK
- Mappings:
Namespace Name Mixin selector named BLACKLnet/minecraft/entity/passive/HorseColor;BLACK:Lnet/minecraft/entity/passive/HorseColor;intermediary field_23820Lnet/minecraft/class_5149;field_23820:Lnet/minecraft/class_5149;official eLcwm;e:Lcwm;
-
GRAY
- Mappings:
Namespace Name Mixin selector named GRAYLnet/minecraft/entity/passive/HorseColor;GRAY:Lnet/minecraft/entity/passive/HorseColor;intermediary field_23821Lnet/minecraft/class_5149;field_23821:Lnet/minecraft/class_5149;official fLcwm;f:Lcwm;
-
DARK_BROWN
- Mappings:
Namespace Name Mixin selector named DARK_BROWNLnet/minecraft/entity/passive/HorseColor;DARK_BROWN:Lnet/minecraft/entity/passive/HorseColor;intermediary field_23822Lnet/minecraft/class_5149;field_23822:Lnet/minecraft/class_5149;official gLcwm;g:Lcwm;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/passive/HorseColor;CODEC:Lcom/mojang/serialization/Codec;intermediary field_41595Lnet/minecraft/class_5149;field_41595:Lcom/mojang/serialization/Codec;official hLcwm;h:Lcom/mojang/serialization/Codec;
-
INDEX_MAPPER
- Mappings:
Namespace Name Mixin selector named INDEX_MAPPERLnet/minecraft/entity/passive/HorseColor;INDEX_MAPPER:Ljava/util/function/IntFunction;intermediary field_23823Lnet/minecraft/class_5149;field_23823:Ljava/util/function/IntFunction;official jLcwm;j:Ljava/util/function/IntFunction;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/entity/passive/HorseColor;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_55972Lnet/minecraft/class_5149;field_55972:Lnet/minecraft/class_9139;official iLcwm;i:Laao;
-
index
private final int index- Mappings:
Namespace Name Mixin selector named indexLnet/minecraft/entity/passive/HorseColor;index:Iintermediary field_23824Lnet/minecraft/class_5149;field_23824:Iofficial kLcwm;k:I
-
id
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/entity/passive/HorseColor;id:Ljava/lang/String;intermediary field_41596Lnet/minecraft/class_5149;field_41596:Ljava/lang/String;official lLcwm;l:Ljava/lang/String;
-
-
Constructor Details
-
HorseColor
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/passive/HorseColor;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_5149;<init>(Ljava/lang/String;IILjava/lang/String;)Vofficial <init>Lcwm;<init>(Ljava/lang/String;IILjava/lang/String;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getIndex
public int getIndex()- Mappings:
Namespace Name Mixin selector named getIndexLnet/minecraft/entity/passive/HorseColor;getIndex()Iintermediary method_27082Lnet/minecraft/class_5149;method_27082()Iofficial aLcwm;a()I
-
byIndex
- Mappings:
Namespace Name Mixin selector named byIndexLnet/minecraft/entity/passive/HorseColor;byIndex(I)Lnet/minecraft/entity/passive/HorseColor;intermediary method_27083Lnet/minecraft/class_5149;method_27083(I)Lnet/minecraft/class_5149;official aLcwm;a(I)Lcwm;
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbhh;c()Ljava/lang/String;
-