public static enum FoxEntity.Type extends Enum<FoxEntity.Type>
Modifier and Type | Field and Description |
---|---|
private List<Biome> |
biomes |
private int |
id |
private String |
key |
private static Map<String,FoxEntity.Type> |
NAME_TYPE_MAP |
private static FoxEntity.Type[] |
TYPES |
Modifier and Type | Method and Description |
---|---|
static FoxEntity.Type |
byName(String name) |
static FoxEntity.Type |
fromBiome(Biome biome) |
static FoxEntity.Type |
fromId(int id) |
List<Biome> |
getBiomes() |
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.
|
public static final FoxEntity.Type RED
public static final FoxEntity.Type SNOW
private static final FoxEntity.Type[] TYPES
private static final Map<String,FoxEntity.Type> NAME_TYPE_MAP
private final int id
private final String key
public static FoxEntity.Type[] values()
for (FoxEntity.Type c : FoxEntity.Type.values()) System.out.println(c);
public static FoxEntity.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getKey()
public int getId()
public static FoxEntity.Type byName(String name)
public static FoxEntity.Type fromId(int id)
public static FoxEntity.Type fromBiome(Biome biome)