Enum Class FoxEntity.Type

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

public static enum FoxEntity.Type extends Enum<FoxEntity.Type> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/entity/passive/FoxEntity$Type
intermediary net/minecraft/class_4019$class_4039
official cfm$v
  • Enum Constant Details

    • RED

      public static final FoxEntity.Type RED
      Mappings:
      Namespace Name Mixin selector
      named RED Lnet/minecraft/entity/passive/FoxEntity$Type;RED:Lnet/minecraft/entity/passive/FoxEntity$Type;
      intermediary field_17996 Lnet/minecraft/class_4019$class_4039;field_17996:Lnet/minecraft/class_4019$class_4039;
      official a Lcfm$v;a:Lcfm$v;
    • SNOW

      public static final FoxEntity.Type SNOW
      Mappings:
      Namespace Name Mixin selector
      named SNOW Lnet/minecraft/entity/passive/FoxEntity$Type;SNOW:Lnet/minecraft/entity/passive/FoxEntity$Type;
      intermediary field_17997 Lnet/minecraft/class_4019$class_4039;field_17997:Lnet/minecraft/class_4019$class_4039;
      official b Lcfm$v;b:Lcfm$v;
  • Field Details

    • CODEC

      public static final StringIdentifiable.EnumCodec<FoxEntity.Type> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/entity/passive/FoxEntity$Type;CODEC:Lnet/minecraft/util/StringIdentifiable$EnumCodec;
      intermediary field_41548 Lnet/minecraft/class_4019$class_4039;field_41548:Lnet/minecraft/class_3542$class_7292;
      official c Lcfm$v;c:Lazj$a;
    • BY_ID

      private static final IntFunction<FoxEntity.Type> BY_ID
      Mappings:
      Namespace Name Mixin selector
      named BY_ID Lnet/minecraft/entity/passive/FoxEntity$Type;BY_ID:Ljava/util/function/IntFunction;
      intermediary field_17998 Lnet/minecraft/class_4019$class_4039;field_17998:Ljava/util/function/IntFunction;
      official d Lcfm$v;d:Ljava/util/function/IntFunction;
    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/entity/passive/FoxEntity$Type;id:I
      intermediary field_18000 Lnet/minecraft/class_4019$class_4039;field_18000:I
      official e Lcfm$v;e:I
    • key

      private final String key
      Mappings:
      Namespace Name Mixin selector
      named key Lnet/minecraft/entity/passive/FoxEntity$Type;key:Ljava/lang/String;
      intermediary field_18001 Lnet/minecraft/class_4019$class_4039;field_18001:Ljava/lang/String;
      official f Lcfm$v;f:Ljava/lang/String;
  • Constructor Details

    • Type

      private Type(int id, String key)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/passive/FoxEntity$Type;<init>(Ljava/lang/String;IILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_4019$class_4039;<init>(Ljava/lang/String;IILjava/lang/String;)V
      official <init> Lcfm$v;<init>(Ljava/lang/String;IILjava/lang/String;)V
  • Method Details

    • values

      public static FoxEntity.Type[] 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 FoxEntity.Type 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
    • 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 Lazj;c()Ljava/lang/String;
    • getId

      public int getId()
      Mappings:
      Namespace Name Mixin selector
      named getId Lnet/minecraft/entity/passive/FoxEntity$Type;getId()I
      intermediary method_18317 Lnet/minecraft/class_4019$class_4039;method_18317()I
      official a Lcfm$v;a()I
    • byName

      public static FoxEntity.Type byName(String name)
      Mappings:
      Namespace Name Mixin selector
      named byName Lnet/minecraft/entity/passive/FoxEntity$Type;byName(Ljava/lang/String;)Lnet/minecraft/entity/passive/FoxEntity$Type;
      intermediary method_18314 Lnet/minecraft/class_4019$class_4039;method_18314(Ljava/lang/String;)Lnet/minecraft/class_4019$class_4039;
      official a Lcfm$v;a(Ljava/lang/String;)Lcfm$v;
    • fromId

      public static FoxEntity.Type fromId(int id)
      Mappings:
      Namespace Name Mixin selector
      named fromId Lnet/minecraft/entity/passive/FoxEntity$Type;fromId(I)Lnet/minecraft/entity/passive/FoxEntity$Type;
      intermediary method_18311 Lnet/minecraft/class_4019$class_4039;method_18311(I)Lnet/minecraft/class_4019$class_4039;
      official a Lcfm$v;a(I)Lcfm$v;
    • fromBiome

      public static FoxEntity.Type fromBiome(RegistryEntry<Biome> biome)
      Mappings:
      Namespace Name Mixin selector
      named fromBiome Lnet/minecraft/entity/passive/FoxEntity$Type;fromBiome(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/entity/passive/FoxEntity$Type;
      intermediary method_18313 Lnet/minecraft/class_4019$class_4039;method_18313(Lnet/minecraft/class_6880;)Lnet/minecraft/class_4019$class_4039;
      official a Lcfm$v;a(Ljm;)Lcfm$v;