Package net.minecraft.entity.passive
Enum Class FoxEntity.Variant
- All Implemented Interfaces:
Serializable,Comparable<FoxEntity.Variant>,Constable,StringIdentifiable
- Enclosing class:
FoxEntity
- Mappings:
Namespace Name named net/minecraft/entity/passive/FoxEntity$Variantintermediary net/minecraft/class_4019$class_4039official ckk$v
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIdentifiable.EnumCodec<FoxEntity.Variant> static final FoxEntity.Variantprivate final Stringprivate final intprivate static final IntFunction<FoxEntity.Variant> static final PacketCodec<ByteBuf, FoxEntity.Variant> Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.static FoxEntity.VariantbyIndex(int index) static FoxEntity.VariantfromBiome(RegistryEntry<Biome> biome) intgetIndex()static FoxEntity.VariantReturns the enum constant of this class with the specified name.static FoxEntity.Variant[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RED
- Mappings:
Namespace Name Mixin selector named REDLnet/minecraft/entity/passive/FoxEntity$Variant;RED:Lnet/minecraft/entity/passive/FoxEntity$Variant;intermediary field_17996Lnet/minecraft/class_4019$class_4039;field_17996:Lnet/minecraft/class_4019$class_4039;official aLckk$v;a:Lckk$v;
-
SNOW
- Mappings:
Namespace Name Mixin selector named SNOWLnet/minecraft/entity/passive/FoxEntity$Variant;SNOW:Lnet/minecraft/entity/passive/FoxEntity$Variant;intermediary field_17997Lnet/minecraft/class_4019$class_4039;field_17997:Lnet/minecraft/class_4019$class_4039;official bLckk$v;b:Lckk$v;
-
-
Field Details
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/entity/passive/FoxEntity$Variant;DEFAULT:Lnet/minecraft/entity/passive/FoxEntity$Variant;intermediary field_57610Lnet/minecraft/class_4019$class_4039;field_57610:Lnet/minecraft/class_4019$class_4039;official cLckk$v;c:Lckk$v;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/passive/FoxEntity$Variant;CODEC:Lnet/minecraft/util/StringIdentifiable$EnumCodec;intermediary field_41548Lnet/minecraft/class_4019$class_4039;field_41548:Lnet/minecraft/class_3542$class_7292;official dLckk$v;d:Lbax$a;
-
INDEX_MAPPER
- Mappings:
Namespace Name Mixin selector named INDEX_MAPPERLnet/minecraft/entity/passive/FoxEntity$Variant;INDEX_MAPPER:Ljava/util/function/IntFunction;intermediary field_17998Lnet/minecraft/class_4019$class_4039;field_17998:Ljava/util/function/IntFunction;official fLckk$v;f:Ljava/util/function/IntFunction;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/entity/passive/FoxEntity$Variant;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_55960Lnet/minecraft/class_4019$class_4039;field_55960:Lnet/minecraft/class_9139;official eLckk$v;e:Lze;
-
index
private final int index- Mappings:
Namespace Name Mixin selector named indexLnet/minecraft/entity/passive/FoxEntity$Variant;index:Iintermediary field_18000Lnet/minecraft/class_4019$class_4039;field_18000:Iofficial gLckk$v;g:I
-
id
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/entity/passive/FoxEntity$Variant;id:Ljava/lang/String;intermediary field_18001Lnet/minecraft/class_4019$class_4039;field_18001:Ljava/lang/String;official hLckk$v;h:Ljava/lang/String;
-
-
Constructor Details
-
Variant
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/passive/FoxEntity$Variant;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_4019$class_4039;<init>(Ljava/lang/String;IILjava/lang/String;)Vofficial <init>Lckk$v;<init>(Ljava/lang/String;IILjava/lang/String;)V
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbax;c()Ljava/lang/String;
-
getIndex
public int getIndex()- Mappings:
Namespace Name Mixin selector named getIndexLnet/minecraft/entity/passive/FoxEntity$Variant;getIndex()Iintermediary method_18317Lnet/minecraft/class_4019$class_4039;method_18317()Iofficial aLckk$v;a()I
-
byIndex
- Mappings:
Namespace Name Mixin selector named byIndexLnet/minecraft/entity/passive/FoxEntity$Variant;byIndex(I)Lnet/minecraft/entity/passive/FoxEntity$Variant;intermediary method_18311Lnet/minecraft/class_4019$class_4039;method_18311(I)Lnet/minecraft/class_4019$class_4039;official aLckk$v;a(I)Lckk$v;
-
fromBiome
- Mappings:
Namespace Name Mixin selector named fromBiomeLnet/minecraft/entity/passive/FoxEntity$Variant;fromBiome(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/entity/passive/FoxEntity$Variant;intermediary method_18313Lnet/minecraft/class_4019$class_4039;method_18313(Lnet/minecraft/class_6880;)Lnet/minecraft/class_4019$class_4039;official aLckk$v;a(Ljg;)Lckk$v;
-