public static enum Biome.TemperatureModifier extends Enum<Biome.TemperatureModifier> implements StringIdentifiable
Modifier and Type | Field and Description |
---|---|
private static Map<String,Biome.TemperatureModifier> |
BY_NAME |
static com.mojang.serialization.Codec<Biome.TemperatureModifier> |
CODEC |
private String |
name |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
static Biome.TemperatureModifier |
byName(String name) |
abstract float |
getModifiedTemperature(BlockPos pos,
float temperature) |
String |
getName() |
static Biome.TemperatureModifier |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Biome.TemperatureModifier[] |
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.TemperatureModifier NONE
public static final Biome.TemperatureModifier FROZEN
public static final com.mojang.serialization.Codec<Biome.TemperatureModifier> CODEC
private static final Map<String,Biome.TemperatureModifier> BY_NAME
private final String name
public static Biome.TemperatureModifier[] values()
for (Biome.TemperatureModifier c : Biome.TemperatureModifier.values()) System.out.println(c);
public static Biome.TemperatureModifier 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 abstract float getModifiedTemperature(BlockPos pos, float temperature)
public String getName()
public String asString()
asString
in interface StringIdentifiable
public static Biome.TemperatureModifier byName(String name)