Package net.minecraft.entity.passive
Enum Class FoxEntity.Type
- All Implemented Interfaces:
Serializable
,Comparable<FoxEntity.Type>
,Constable
- Enclosing class:
- FoxEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<RegistryKey<Biome>>
private static final FoxEntity.Type[]
private static final Map<String,
FoxEntity.Type> private final int
private final String
-
Constructor Summary
ModifierConstructorDescriptionprivate
Type
(int p_i241911_3_, String p_i241911_4_, RegistryKey<Biome>... p_i241911_5_) -
Method Summary
Modifier and TypeMethodDescriptionstatic FoxEntity.Type
byBiome
(Optional<RegistryKey<Biome>> p_242325_0_) static FoxEntity.Type
byId
(int p_221080_0_) static FoxEntity.Type
int
getId()
getName()
static FoxEntity.Type
Returns 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
-
SNOW
-
-
Field Details
-
BY_ID
-
BY_NAME
-
id
private final int id -
name
-
biomes
-
-
Constructor Details
-
Type
-
-
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
-
getName
-
getId
public int getId() -
byName
-
byId
-
byBiome
-