Package net.minecraft.entity.passive
Enum Class FoxEntity.Type
- All Implemented Interfaces:
Serializable,Comparable<FoxEntity.Type>,Constable,StringIdentifiable
- Enclosing class:
FoxEntity
- Mappings:
Namespace Name official brt$vintermediary net/minecraft/class_4019$class_4039named net/minecraft/entity/passive/FoxEntity$Type
-
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.Codec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final IntFunction<FoxEntity.Type>static final StringIdentifiable.Codec<FoxEntity.Type>private final intprivate final StringFields inherited from interface net.minecraft.util.StringIdentifiable
field_38377 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.static FoxEntity.Typestatic FoxEntity.TypefromBiome(RegistryEntry<Biome> biome) static FoxEntity.TypefromId(int id) intgetId()static FoxEntity.TypeReturns the enum constant of this class with the specified name.static FoxEntity.Type[]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 official aLbrt$v;a:Lbrt$v;intermediary field_17996Lnet/minecraft/class_4019$class_4039;field_17996:Lnet/minecraft/class_4019$class_4039;named REDLnet/minecraft/entity/passive/FoxEntity$Type;RED:Lnet/minecraft/entity/passive/FoxEntity$Type;
-
SNOW
- Mappings:
Namespace Name Mixin selector official bLbrt$v;b:Lbrt$v;intermediary field_17997Lnet/minecraft/class_4019$class_4039;field_17997:Lnet/minecraft/class_4019$class_4039;named SNOWLnet/minecraft/entity/passive/FoxEntity$Type;SNOW:Lnet/minecraft/entity/passive/FoxEntity$Type;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official cLbrt$v;c:Lapr$a;intermediary field_41548Lnet/minecraft/class_4019$class_4039;field_41548:Lnet/minecraft/class_3542$class_7292;named CODECLnet/minecraft/entity/passive/FoxEntity$Type;CODEC:Lnet/minecraft/util/StringIdentifiable$Codec;
-
BY_ID
- Mappings:
Namespace Name Mixin selector official dLbrt$v;d:Ljava/util/function/IntFunction;intermediary field_17998Lnet/minecraft/class_4019$class_4039;field_17998:Ljava/util/function/IntFunction;named BY_IDLnet/minecraft/entity/passive/FoxEntity$Type;BY_ID:Ljava/util/function/IntFunction;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official eLbrt$v;e:Iintermediary field_18000Lnet/minecraft/class_4019$class_4039;field_18000:Inamed idLnet/minecraft/entity/passive/FoxEntity$Type;id:I
-
key
- Mappings:
Namespace Name Mixin selector official fLbrt$v;f:Ljava/lang/String;intermediary field_18001Lnet/minecraft/class_4019$class_4039;field_18001:Ljava/lang/String;named keyLnet/minecraft/entity/passive/FoxEntity$Type;key:Ljava/lang/String;
-
-
Constructor Details
-
Type
- Mappings:
Namespace Name Mixin selector official <init>Lbrt$v;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_4019$class_4039;<init>(Ljava/lang/String;IILjava/lang/String;)Vnamed <init>Lnet/minecraft/entity/passive/FoxEntity$Type;<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 official cLapr;c()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official aLbrt$v;a()Iintermediary method_18317Lnet/minecraft/class_4019$class_4039;method_18317()Inamed getIdLnet/minecraft/entity/passive/FoxEntity$Type;getId()I
-
byName
- Mappings:
Namespace Name Mixin selector official aLbrt$v;a(Ljava/lang/String;)Lbrt$v;intermediary method_18314Lnet/minecraft/class_4019$class_4039;method_18314(Ljava/lang/String;)Lnet/minecraft/class_4019$class_4039;named byNameLnet/minecraft/entity/passive/FoxEntity$Type;byName(Ljava/lang/String;)Lnet/minecraft/entity/passive/FoxEntity$Type;
-
fromId
- Mappings:
Namespace Name Mixin selector official aLbrt$v;a(I)Lbrt$v;intermediary method_18311Lnet/minecraft/class_4019$class_4039;method_18311(I)Lnet/minecraft/class_4019$class_4039;named fromIdLnet/minecraft/entity/passive/FoxEntity$Type;fromId(I)Lnet/minecraft/entity/passive/FoxEntity$Type;
-
fromBiome
- Mappings:
Namespace Name Mixin selector official aLbrt$v;a(Lhe;)Lbrt$v;intermediary method_18313Lnet/minecraft/class_4019$class_4039;method_18313(Lnet/minecraft/class_6880;)Lnet/minecraft/class_4019$class_4039;named fromBiomeLnet/minecraft/entity/passive/FoxEntity$Type;fromBiome(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/entity/passive/FoxEntity$Type;
-