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>
-
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>>
biomes
private int
id
private String
key
private static Map<String,FoxEntity.Type>
NAME_TYPE_MAP
private static FoxEntity.Type[]
TYPES
-
Constructor Summary
Constructors Modifier Constructor Description private
Type(int id, String key, RegistryKey<Biome>[] registryKey)
-
Method Summary
Modifier and Type Method Description static FoxEntity.Type
byName(String name)
static FoxEntity.Type
fromBiome(Optional<RegistryKey<Biome>> optional)
static FoxEntity.Type
fromId(int id)
int
getId()
String
getKey()
static FoxEntity.Type
valueOf(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
-
SNOW
-
-
Field Details
-
TYPES
-
NAME_TYPE_MAP
-
id
private final int id -
key
-
biomes
-
-
Constructor Details
-
Type
-
-
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
-
getId
public int getId() -
byName
-
fromId
-
fromBiome
-