Package net.minecraft.entity.passive
Enum FoxEntity.Type
- java.lang.Object
-
- java.lang.Enum<FoxEntity.Type>
-
- net.minecraft.entity.passive.FoxEntity.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FoxEntity.Type>
- Enclosing class:
- FoxEntity
public static enum FoxEntity.Type extends java.lang.Enum<FoxEntity.Type>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<RegistryKey<Biome>>
biomes
private static FoxEntity.Type[]
BY_ID
private static java.util.Map<java.lang.String,FoxEntity.Type>
BY_NAME
private int
id
private java.lang.String
name
-
Constructor Summary
Constructors Modifier Constructor Description private
Type(int p_i241911_3_, java.lang.String p_i241911_4_, RegistryKey<Biome>... p_i241911_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FoxEntity.Type
byBiome(java.util.Optional<RegistryKey<Biome>> p_242325_0_)
static FoxEntity.Type
byId(int p_221080_0_)
static FoxEntity.Type
byName(java.lang.String p_221087_0_)
int
getId()
java.lang.String
getName()
static FoxEntity.Type
valueOf(java.lang.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 Detail
-
RED
public static final FoxEntity.Type RED
-
SNOW
public static final FoxEntity.Type SNOW
-
-
Field Detail
-
BY_ID
private static final FoxEntity.Type[] BY_ID
-
BY_NAME
private static final java.util.Map<java.lang.String,FoxEntity.Type> BY_NAME
-
id
private final int id
-
name
private final java.lang.String name
-
biomes
private final java.util.List<RegistryKey<Biome>> biomes
-
-
Constructor Detail
-
Type
private Type(int p_i241911_3_, java.lang.String p_i241911_4_, RegistryKey<Biome>... p_i241911_5_)
-
-
Method Detail
-
values
public static FoxEntity.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FoxEntity.Type c : FoxEntity.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FoxEntity.Type valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName()
-
getId
public int getId()
-
byName
public static FoxEntity.Type byName(java.lang.String p_221087_0_)
-
byId
public static FoxEntity.Type byId(int p_221080_0_)
-
byBiome
public static FoxEntity.Type byBiome(java.util.Optional<RegistryKey<Biome>> p_242325_0_)
-
-