Package net.minecraft.entity.passive
Enum Class HorseColor
- All Implemented Interfaces:
Serializable,Comparable<HorseColor>,Constable
- Mappings:
Namespace Name official bjvintermediary net/minecraft/class_5149named net/minecraft/entity/passive/HorseColor
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 official aLbjv;a:Lbjv;intermediary field_23816Lnet/minecraft/class_5149;field_23816:Lnet/minecraft/class_5149;named WHITELnet/minecraft/entity/passive/HorseColor;WHITE:Lnet/minecraft/entity/passive/HorseColor;
-
CREAMY
- Mappings:
Namespace Name Mixin selector official bLbjv;b:Lbjv;intermediary field_23817Lnet/minecraft/class_5149;field_23817:Lnet/minecraft/class_5149;named CREAMYLnet/minecraft/entity/passive/HorseColor;CREAMY:Lnet/minecraft/entity/passive/HorseColor;
-
CHESTNUT
- Mappings:
Namespace Name Mixin selector official cLbjv;c:Lbjv;intermediary field_23818Lnet/minecraft/class_5149;field_23818:Lnet/minecraft/class_5149;named CHESTNUTLnet/minecraft/entity/passive/HorseColor;CHESTNUT:Lnet/minecraft/entity/passive/HorseColor;
-
BROWN
- Mappings:
Namespace Name Mixin selector official dLbjv;d:Lbjv;intermediary field_23819Lnet/minecraft/class_5149;field_23819:Lnet/minecraft/class_5149;named BROWNLnet/minecraft/entity/passive/HorseColor;BROWN:Lnet/minecraft/entity/passive/HorseColor;
-
BLACK
- Mappings:
Namespace Name Mixin selector official eLbjv;e:Lbjv;intermediary field_23820Lnet/minecraft/class_5149;field_23820:Lnet/minecraft/class_5149;named BLACKLnet/minecraft/entity/passive/HorseColor;BLACK:Lnet/minecraft/entity/passive/HorseColor;
-
GRAY
- Mappings:
Namespace Name Mixin selector official fLbjv;f:Lbjv;intermediary field_23821Lnet/minecraft/class_5149;field_23821:Lnet/minecraft/class_5149;named GRAYLnet/minecraft/entity/passive/HorseColor;GRAY:Lnet/minecraft/entity/passive/HorseColor;
-
DARKBROWN
- Mappings:
Namespace Name Mixin selector official gLbjv;g:Lbjv;intermediary field_23822Lnet/minecraft/class_5149;field_23822:Lnet/minecraft/class_5149;named DARKBROWNLnet/minecraft/entity/passive/HorseColor;DARKBROWN:Lnet/minecraft/entity/passive/HorseColor;
-
-
Field Details
-
VALUES
- Mappings:
Namespace Name Mixin selector official hLbjv;h:[Lbjv;intermediary field_23823Lnet/minecraft/class_5149;field_23823:[Lnet/minecraft/class_5149;named VALUESLnet/minecraft/entity/passive/HorseColor;VALUES:[Lnet/minecraft/entity/passive/HorseColor;
-
index
private final int index- Mappings:
Namespace Name Mixin selector official iLbjv;i:Iintermediary field_23824Lnet/minecraft/class_5149;field_23824:Inamed indexLnet/minecraft/entity/passive/HorseColor;index:I
-
-
Constructor Details
-
HorseColor
private HorseColor(int index) - Mappings:
Namespace Name Mixin selector official <init>Lbjv;<init>(Ljava/lang/String;II)Vintermediary <init>Lnet/minecraft/class_5149;<init>(Ljava/lang/String;II)Vnamed <init>Lnet/minecraft/entity/passive/HorseColor;<init>(Ljava/lang/String;II)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 official aLbjv;a()Iintermediary method_27082Lnet/minecraft/class_5149;method_27082()Inamed getIndexLnet/minecraft/entity/passive/HorseColor;getIndex()I
-
byIndex
- Mappings:
Namespace Name Mixin selector official aLbjv;a(I)Lbjv;intermediary method_27083Lnet/minecraft/class_5149;method_27083(I)Lnet/minecraft/class_5149;named byIndexLnet/minecraft/entity/passive/HorseColor;byIndex(I)Lnet/minecraft/entity/passive/HorseColor;
-