Package net.minecraft.entity.passive
Enum HorseColor
- All Implemented Interfaces:
Serializable
,Comparable<HorseColor>
,java.lang.constant.Constable
public enum HorseColor extends Enum<HorseColor>
- Mappings:
Namespace Name official bda
intermediary net/minecraft/class_5149
named 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
-
Field Summary
Fields Modifier and Type Field Description private int
index
private static HorseColor[]
VALUES
-
Constructor Summary
Constructors Modifier Constructor Description private
HorseColor(int index)
-
Method Summary
Modifier and Type Method Description static HorseColor
byIndex(int index)
int
getIndex()
static HorseColor
valueOf(String name)
Returns the enum constant of this type with the specified name.static HorseColor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
WHITE
- Mappings:
Namespace Name Mixin selector official a
Lbda;a:Lbda;
intermediary field_23816
Lnet/minecraft/class_5149;field_23816:Lnet/minecraft/class_5149;
named WHITE
Lnet/minecraft/entity/passive/HorseColor;WHITE:Lnet/minecraft/entity/passive/HorseColor;
-
CREAMY
- Mappings:
Namespace Name Mixin selector official b
Lbda;b:Lbda;
intermediary field_23817
Lnet/minecraft/class_5149;field_23817:Lnet/minecraft/class_5149;
named CREAMY
Lnet/minecraft/entity/passive/HorseColor;CREAMY:Lnet/minecraft/entity/passive/HorseColor;
-
CHESTNUT
- Mappings:
Namespace Name Mixin selector official c
Lbda;c:Lbda;
intermediary field_23818
Lnet/minecraft/class_5149;field_23818:Lnet/minecraft/class_5149;
named CHESTNUT
Lnet/minecraft/entity/passive/HorseColor;CHESTNUT:Lnet/minecraft/entity/passive/HorseColor;
-
BROWN
- Mappings:
Namespace Name Mixin selector official d
Lbda;d:Lbda;
intermediary field_23819
Lnet/minecraft/class_5149;field_23819:Lnet/minecraft/class_5149;
named BROWN
Lnet/minecraft/entity/passive/HorseColor;BROWN:Lnet/minecraft/entity/passive/HorseColor;
-
BLACK
- Mappings:
Namespace Name Mixin selector official e
Lbda;e:Lbda;
intermediary field_23820
Lnet/minecraft/class_5149;field_23820:Lnet/minecraft/class_5149;
named BLACK
Lnet/minecraft/entity/passive/HorseColor;BLACK:Lnet/minecraft/entity/passive/HorseColor;
-
GRAY
- Mappings:
Namespace Name Mixin selector official f
Lbda;f:Lbda;
intermediary field_23821
Lnet/minecraft/class_5149;field_23821:Lnet/minecraft/class_5149;
named GRAY
Lnet/minecraft/entity/passive/HorseColor;GRAY:Lnet/minecraft/entity/passive/HorseColor;
-
DARKBROWN
- Mappings:
Namespace Name Mixin selector official g
Lbda;g:Lbda;
intermediary field_23822
Lnet/minecraft/class_5149;field_23822:Lnet/minecraft/class_5149;
named DARKBROWN
Lnet/minecraft/entity/passive/HorseColor;DARKBROWN:Lnet/minecraft/entity/passive/HorseColor;
-
-
Field Details
-
VALUES
- Mappings:
Namespace Name Mixin selector official h
Lbda;h:[Lbda;
intermediary field_23823
Lnet/minecraft/class_5149;field_23823:[Lnet/minecraft/class_5149;
named VALUES
Lnet/minecraft/entity/passive/HorseColor;VALUES:[Lnet/minecraft/entity/passive/HorseColor;
-
index
private final int index- Mappings:
Namespace Name Mixin selector official i
Lbda;i:I
intermediary field_23824
Lnet/minecraft/class_5149;field_23824:I
named index
Lnet/minecraft/entity/passive/HorseColor;index:I
-
-
Constructor Details
-
HorseColor
private HorseColor(int index)- Mappings:
Namespace Name Mixin selector official <init>
Lbda;<init>(Ljava/lang/String;II)V
intermediary <init>
Lnet/minecraft/class_5149;<init>(Ljava/lang/String;II)V
named <init>
Lnet/minecraft/entity/passive/HorseColor;<init>(Ljava/lang/String;II)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getIndex
public int getIndex()- Mappings:
Namespace Name Mixin selector official a
Lbda;a()I
intermediary method_27082
Lnet/minecraft/class_5149;method_27082()I
named getIndex
Lnet/minecraft/entity/passive/HorseColor;getIndex()I
-
byIndex
- Mappings:
Namespace Name Mixin selector official a
Lbda;a(I)Lbda;
intermediary method_27083
Lnet/minecraft/class_5149;method_27083(I)Lnet/minecraft/class_5149;
named byIndex
Lnet/minecraft/entity/passive/HorseColor;byIndex(I)Lnet/minecraft/entity/passive/HorseColor;
-