枚举 HorseColor
- java.lang.Object
-
- java.lang.Enum<HorseColor>
-
- net.minecraft.entity.passive.HorseColor
-
- 所有已实现的接口:
Serializable,Comparable<HorseColor>
public enum HorseColor extends Enum<HorseColor>
- Mappings:
Namespace Name official betintermediary net/minecraft/class_5149named net/minecraft/entity/passive/HorseColor
-
-
字段概要
字段 修饰符和类型 字段 说明 private intindexprivate static HorseColor[]VALUES
-
构造器概要
构造器 限定符 构造器 说明 privateHorseColor(int index)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static HorseColorbyIndex(int index)intgetIndex()static HorseColorvalueOf(String name)返回带有指定名称的该类型的枚举常量。static HorseColor[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
WHITE
public static final HorseColor WHITE
- Mappings:
Namespace Name Mixin selector official aLbet;a:Lbet;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
public static final HorseColor CREAMY
- Mappings:
Namespace Name Mixin selector official bLbet;b:Lbet;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
public static final HorseColor CHESTNUT
- Mappings:
Namespace Name Mixin selector official cLbet;c:Lbet;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
public static final HorseColor BROWN
- Mappings:
Namespace Name Mixin selector official dLbet;d:Lbet;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
public static final HorseColor BLACK
- Mappings:
Namespace Name Mixin selector official eLbet;e:Lbet;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
public static final HorseColor GRAY
- Mappings:
Namespace Name Mixin selector official fLbet;f:Lbet;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
public static final HorseColor DARKBROWN
- Mappings:
Namespace Name Mixin selector official gLbet;g:Lbet;intermediary field_23822Lnet/minecraft/class_5149;field_23822:Lnet/minecraft/class_5149;named DARKBROWNLnet/minecraft/entity/passive/HorseColor;DARKBROWN:Lnet/minecraft/entity/passive/HorseColor;
-
-
字段详细资料
-
VALUES
private static final HorseColor[] VALUES
- Mappings:
Namespace Name Mixin selector official hLbet;h:[Lbet;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 iLbet;i:Iintermediary field_23824Lnet/minecraft/class_5149;field_23824:Inamed indexLnet/minecraft/entity/passive/HorseColor;index:I
-
-
构造器详细资料
-
HorseColor
private HorseColor(int index)
- Mappings:
Namespace Name Mixin selector official <init>Lbet;<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
-
-
方法详细资料
-
values
public static HorseColor[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (HorseColor c : HorseColor.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static HorseColor valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
getIndex
public int getIndex()
- Mappings:
Namespace Name Mixin selector official aLbet;a()Iintermediary method_27082Lnet/minecraft/class_5149;method_27082()Inamed getIndexLnet/minecraft/entity/passive/HorseColor;getIndex()I
-
byIndex
public static HorseColor byIndex(int index)
- Mappings:
Namespace Name Mixin selector official aLbet;a(I)Lbet;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;
-
-