Enum Class FoxEntity.Variant

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

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

    • RED

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

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

    • DEFAULT

      public static final FoxEntity.Variant DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/entity/passive/FoxEntity$Variant;DEFAULT:Lnet/minecraft/entity/passive/FoxEntity$Variant;
      intermediary field_57610 Lnet/minecraft/class_4019$class_4039;field_57610:Lnet/minecraft/class_4019$class_4039;
      official c Lcms$v;c:Lcms$v;
    • CODEC

      public static final StringIdentifiable.EnumCodec<FoxEntity.Variant> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/entity/passive/FoxEntity$Variant;CODEC:Lnet/minecraft/util/StringIdentifiable$EnumCodec;
      intermediary field_41548 Lnet/minecraft/class_4019$class_4039;field_41548:Lnet/minecraft/class_3542$class_7292;
      official d Lcms$v;d:Lbda$a;
    • INDEX_MAPPER

      private static final IntFunction<FoxEntity.Variant> INDEX_MAPPER
      Mappings:
      Namespace Name Mixin selector
      named INDEX_MAPPER Lnet/minecraft/entity/passive/FoxEntity$Variant;INDEX_MAPPER:Ljava/util/function/IntFunction;
      intermediary field_17998 Lnet/minecraft/class_4019$class_4039;field_17998:Ljava/util/function/IntFunction;
      official f Lcms$v;f:Ljava/util/function/IntFunction;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,FoxEntity.Variant> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/entity/passive/FoxEntity$Variant;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_55960 Lnet/minecraft/class_4019$class_4039;field_55960:Lnet/minecraft/class_9139;
      official e Lcms$v;e:Lzm;
    • index

      private final int index
      Mappings:
      Namespace Name Mixin selector
      named index Lnet/minecraft/entity/passive/FoxEntity$Variant;index:I
      intermediary field_18000 Lnet/minecraft/class_4019$class_4039;field_18000:I
      official g Lcms$v;g:I
    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/entity/passive/FoxEntity$Variant;id:Ljava/lang/String;
      intermediary field_18001 Lnet/minecraft/class_4019$class_4039;field_18001:Ljava/lang/String;
      official h Lcms$v;h:Ljava/lang/String;
  • Constructor Details

    • Variant

      private Variant(int index, String id)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/passive/FoxEntity$Variant;<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> Lcms$v;<init>(Ljava/lang/String;IILjava/lang/String;)V
  • Method Details

    • values

      public static FoxEntity.Variant[] 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.Variant 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 Lbda;c()Ljava/lang/String;
    • getIndex

      public int getIndex()
      Mappings:
      Namespace Name Mixin selector
      named getIndex Lnet/minecraft/entity/passive/FoxEntity$Variant;getIndex()I
      intermediary method_18317 Lnet/minecraft/class_4019$class_4039;method_18317()I
      official a Lcms$v;a()I
    • byIndex

      public static FoxEntity.Variant byIndex(int index)
      Mappings:
      Namespace Name Mixin selector
      named byIndex Lnet/minecraft/entity/passive/FoxEntity$Variant;byIndex(I)Lnet/minecraft/entity/passive/FoxEntity$Variant;
      intermediary method_18311 Lnet/minecraft/class_4019$class_4039;method_18311(I)Lnet/minecraft/class_4019$class_4039;
      official a Lcms$v;a(I)Lcms$v;
    • fromBiome

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