Package net.minecraft.entity.passive
Enum FoxEntity.Type
- All Implemented Interfaces:
Serializable,Comparable<FoxEntity.Type>,java.lang.constant.Constable
- Enclosing class:
- FoxEntity
public static enum FoxEntity.Type extends Enum<FoxEntity.Type>
- Mappings:
Namespace Name official bcl$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>> -
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private List<RegistryKey<Biome>>biomesprivate intidprivate Stringkeyprivate static Map<String,FoxEntity.Type>NAME_TYPE_MAPprivate static FoxEntity.Type[]TYPES -
Constructor Summary
Constructors Modifier Constructor Description privateType(int id, String key, RegistryKey<Biome>[] biomes) -
Method Summary
Modifier and Type Method Description static FoxEntity.TypebyName(String name)static FoxEntity.TypefromBiome(Optional<RegistryKey<Biome>> optional)static FoxEntity.TypefromId(int id)intgetId()StringgetKey()static FoxEntity.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static FoxEntity.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RED
- Mappings:
Namespace Name Mixin selector official aLbcl$v;a:Lbcl$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 bLbcl$v;b:Lbcl$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
-
TYPES
- Mappings:
Namespace Name Mixin selector official cLbcl$v;c:[Lbcl$v;intermediary field_17998Lnet/minecraft/class_4019$class_4039;field_17998:[Lnet/minecraft/class_4019$class_4039;named TYPESLnet/minecraft/entity/passive/FoxEntity$Type;TYPES:[Lnet/minecraft/entity/passive/FoxEntity$Type;
-
NAME_TYPE_MAP
- Mappings:
Namespace Name Mixin selector official dLbcl$v;d:Ljava/util/Map;intermediary field_17999Lnet/minecraft/class_4019$class_4039;field_17999:Ljava/util/Map;named NAME_TYPE_MAPLnet/minecraft/entity/passive/FoxEntity$Type;NAME_TYPE_MAP:Ljava/util/Map;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official eLbcl$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 fLbcl$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;
-
biomes
- Mappings:
Namespace Name Mixin selector official gLbcl$v;g:Ljava/util/List;intermediary field_18002Lnet/minecraft/class_4019$class_4039;field_18002:Ljava/util/List;named biomesLnet/minecraft/entity/passive/FoxEntity$Type;biomes:Ljava/util/List;
-
-
Constructor Details
-
Type
- Mappings:
Namespace Name Mixin selector official <init>Lbcl$v;<init>(Ljava/lang/String;IILjava/lang/String;[Lwk;)Vintermediary <init>Lnet/minecraft/class_4019$class_4039;<init>(Ljava/lang/String;IILjava/lang/String;[Lnet/minecraft/class_5321;)Vnamed <init>Lnet/minecraft/entity/passive/FoxEntity$Type;<init>(Ljava/lang/String;IILjava/lang/String;[Lnet/minecraft/util/registry/RegistryKey;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getKey
- Mappings:
Namespace Name Mixin selector official aLbcl$v;a()Ljava/lang/String;intermediary method_18310Lnet/minecraft/class_4019$class_4039;method_18310()Ljava/lang/String;named getKeyLnet/minecraft/entity/passive/FoxEntity$Type;getKey()Ljava/lang/String;
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official bLbcl$v;b()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 aLbcl$v;a(Ljava/lang/String;)Lbcl$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 aLbcl$v;a(I)Lbcl$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 aLbcl$v;a(Ljava/util/Optional;)Lbcl$v;intermediary method_18313Lnet/minecraft/class_4019$class_4039;method_18313(Ljava/util/Optional;)Lnet/minecraft/class_4019$class_4039;named fromBiomeLnet/minecraft/entity/passive/FoxEntity$Type;fromBiome(Ljava/util/Optional;)Lnet/minecraft/entity/passive/FoxEntity$Type;
-