枚举 HorseColor

  • 所有已实现的接口:
    Serializable, Comparable<HorseColor>

    public enum HorseColor
    extends Enum<HorseColor>
    Mappings:
    Namespace Name
    official bet
    intermediary net/minecraft/class_5149
    named net/minecraft/entity/passive/HorseColor
    • 枚举常量详细资料

      • WHITE

        public static final HorseColor WHITE
        Mappings:
        Namespace Name Mixin selector
        official a Lbet;a:Lbet;
        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

        public static final HorseColor CREAMY
        Mappings:
        Namespace Name Mixin selector
        official b Lbet;b:Lbet;
        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

        public static final HorseColor CHESTNUT
        Mappings:
        Namespace Name Mixin selector
        official c Lbet;c:Lbet;
        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

        public static final HorseColor BROWN
        Mappings:
        Namespace Name Mixin selector
        official d Lbet;d:Lbet;
        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

        public static final HorseColor BLACK
        Mappings:
        Namespace Name Mixin selector
        official e Lbet;e:Lbet;
        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

        public static final HorseColor GRAY
        Mappings:
        Namespace Name Mixin selector
        official f Lbet;f:Lbet;
        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

        public static final HorseColor DARKBROWN
        Mappings:
        Namespace Name Mixin selector
        official g Lbet;g:Lbet;
        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;
    • 字段详细资料

      • VALUES

        private static final HorseColor[] VALUES
        Mappings:
        Namespace Name Mixin selector
        official h Lbet;h:[Lbet;
        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 Lbet;i:I
        intermediary field_23824 Lnet/minecraft/class_5149;field_23824:I
        named index Lnet/minecraft/entity/passive/HorseColor;index:I
    • 构造器详细资料

      • HorseColor

        private HorseColor​(int index)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbet;<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
    • 方法详细资料

      • 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 a Lbet;a()I
        intermediary method_27082 Lnet/minecraft/class_5149;method_27082()I
        named getIndex Lnet/minecraft/entity/passive/HorseColor;getIndex()I
      • byIndex

        public static HorseColor byIndex​(int index)
        Mappings:
        Namespace Name Mixin selector
        official a Lbet;a(I)Lbet;
        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;