Enum Class HorseColor

java.lang.Object
java.lang.Enum<HorseColor>
net.minecraft.entity.passive.HorseColor
All Implemented Interfaces:
Serializable, Comparable<HorseColor>, Constable, StringIdentifiable

public enum HorseColor extends Enum<HorseColor> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/entity/passive/HorseColor
intermediary net/minecraft/class_5149
official ckj
  • Enum Constant Details

    • WHITE

      public static final HorseColor WHITE
      Mappings:
      Namespace Name Mixin selector
      named WHITE Lnet/minecraft/entity/passive/HorseColor;WHITE:Lnet/minecraft/entity/passive/HorseColor;
      intermediary field_23816 Lnet/minecraft/class_5149;field_23816:Lnet/minecraft/class_5149;
      official a Lckj;a:Lckj;
    • CREAMY

      public static final HorseColor CREAMY
      Mappings:
      Namespace Name Mixin selector
      named CREAMY Lnet/minecraft/entity/passive/HorseColor;CREAMY:Lnet/minecraft/entity/passive/HorseColor;
      intermediary field_23817 Lnet/minecraft/class_5149;field_23817:Lnet/minecraft/class_5149;
      official b Lckj;b:Lckj;
    • CHESTNUT

      public static final HorseColor CHESTNUT
      Mappings:
      Namespace Name Mixin selector
      named CHESTNUT Lnet/minecraft/entity/passive/HorseColor;CHESTNUT:Lnet/minecraft/entity/passive/HorseColor;
      intermediary field_23818 Lnet/minecraft/class_5149;field_23818:Lnet/minecraft/class_5149;
      official c Lckj;c:Lckj;
    • BROWN

      public static final HorseColor BROWN
      Mappings:
      Namespace Name Mixin selector
      named BROWN Lnet/minecraft/entity/passive/HorseColor;BROWN:Lnet/minecraft/entity/passive/HorseColor;
      intermediary field_23819 Lnet/minecraft/class_5149;field_23819:Lnet/minecraft/class_5149;
      official d Lckj;d:Lckj;
    • BLACK

      public static final HorseColor BLACK
      Mappings:
      Namespace Name Mixin selector
      named BLACK Lnet/minecraft/entity/passive/HorseColor;BLACK:Lnet/minecraft/entity/passive/HorseColor;
      intermediary field_23820 Lnet/minecraft/class_5149;field_23820:Lnet/minecraft/class_5149;
      official e Lckj;e:Lckj;
    • GRAY

      public static final HorseColor GRAY
      Mappings:
      Namespace Name Mixin selector
      named GRAY Lnet/minecraft/entity/passive/HorseColor;GRAY:Lnet/minecraft/entity/passive/HorseColor;
      intermediary field_23821 Lnet/minecraft/class_5149;field_23821:Lnet/minecraft/class_5149;
      official f Lckj;f:Lckj;
    • DARK_BROWN

      public static final HorseColor DARK_BROWN
      Mappings:
      Namespace Name Mixin selector
      named DARK_BROWN Lnet/minecraft/entity/passive/HorseColor;DARK_BROWN:Lnet/minecraft/entity/passive/HorseColor;
      intermediary field_23822 Lnet/minecraft/class_5149;field_23822:Lnet/minecraft/class_5149;
      official g Lckj;g:Lckj;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<HorseColor> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/entity/passive/HorseColor;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_41595 Lnet/minecraft/class_5149;field_41595:Lcom/mojang/serialization/Codec;
      official h Lckj;h:Lcom/mojang/serialization/Codec;
    • BY_ID

      private static final IntFunction<HorseColor> BY_ID
      Mappings:
      Namespace Name Mixin selector
      named BY_ID Lnet/minecraft/entity/passive/HorseColor;BY_ID:Ljava/util/function/IntFunction;
      intermediary field_23823 Lnet/minecraft/class_5149;field_23823:Ljava/util/function/IntFunction;
      official i Lckj;i:Ljava/util/function/IntFunction;
    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/entity/passive/HorseColor;id:I
      intermediary field_23824 Lnet/minecraft/class_5149;field_23824:I
      official j Lckj;j:I
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/entity/passive/HorseColor;name:Ljava/lang/String;
      intermediary field_41596 Lnet/minecraft/class_5149;field_41596:Ljava/lang/String;
      official k Lckj;k:Ljava/lang/String;
  • Constructor Details

    • HorseColor

      private HorseColor(int id, String name)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/passive/HorseColor;<init>(Ljava/lang/String;IILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_5149;<init>(Ljava/lang/String;IILjava/lang/String;)V
      official <init> Lckj;<init>(Ljava/lang/String;IILjava/lang/String;)V
  • Method Details

    • values

      public static HorseColor[] 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

      public static HorseColor valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getId

      public int getId()
      Mappings:
      Namespace Name Mixin selector
      named getId Lnet/minecraft/entity/passive/HorseColor;getId()I
      intermediary method_27082 Lnet/minecraft/class_5149;method_27082()I
      official a Lckj;a()I
    • byId

      public static HorseColor byId(int id)
      Mappings:
      Namespace Name Mixin selector
      named byId Lnet/minecraft/entity/passive/HorseColor;byId(I)Lnet/minecraft/entity/passive/HorseColor;
      intermediary method_27083 Lnet/minecraft/class_5149;method_27083(I)Lnet/minecraft/class_5149;
      official a Lckj;a(I)Lckj;
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lbba;c()Ljava/lang/String;