public static enum Biome.Precipitation extends Enum<Biome.Precipitation> implements StringIdentifiable
Modifier and Type | Field and Description |
---|---|
private static Map<String,Biome.Precipitation> |
BY_NAME |
static com.mojang.serialization.Codec<Biome.Precipitation> |
CODEC |
private String |
name |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
static Biome.Precipitation |
byName(String name) |
String |
getName() |
static Biome.Precipitation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Biome.Precipitation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
createCodec, createCodec, method_28142
public static final Biome.Precipitation NONE
public static final Biome.Precipitation RAIN
public static final Biome.Precipitation SNOW
public static final com.mojang.serialization.Codec<Biome.Precipitation> CODEC
private static final Map<String,Biome.Precipitation> BY_NAME
private final String name
public static Biome.Precipitation[] values()
for (Biome.Precipitation c : Biome.Precipitation.values()) System.out.println(c);
public static Biome.Precipitation 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 getName()
public static Biome.Precipitation byName(String name)
public String asString()
asString
in interface StringIdentifiable