Package net.minecraft.world.biome
Enum Biome.TemperatureModifier
- java.lang.Object
-
- java.lang.Enum<Biome.TemperatureModifier>
-
- net.minecraft.world.biome.Biome.TemperatureModifier
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Biome.TemperatureModifier>
,IStringSerializable
- Enclosing class:
- Biome
public static enum Biome.TemperatureModifier extends java.lang.Enum<Biome.TemperatureModifier> implements IStringSerializable
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.String,Biome.TemperatureModifier>
BY_NAME
static com.mojang.serialization.Codec<Biome.TemperatureModifier>
CODEC
private java.lang.String
name
-
Constructor Summary
Constructors Modifier Constructor Description private
TemperatureModifier(java.lang.String p_i241931_3_)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Biome.TemperatureModifier
byName(java.lang.String p_242477_0_)
java.lang.String
getName()
java.lang.String
getSerializedName()
abstract float
modifyTemperature(BlockPos p_241852_1_, float p_241852_2_)
static Biome.TemperatureModifier
valueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
NONE
public static final Biome.TemperatureModifier NONE
-
FROZEN
public static final Biome.TemperatureModifier FROZEN
-
-
Field Detail
-
name
private final java.lang.String name
-
CODEC
public static final com.mojang.serialization.Codec<Biome.TemperatureModifier> CODEC
-
BY_NAME
private static final java.util.Map<java.lang.String,Biome.TemperatureModifier> BY_NAME
-
-
Method Detail
-
values
public static Biome.TemperatureModifier[] 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 (Biome.TemperatureModifier c : Biome.TemperatureModifier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Biome.TemperatureModifier 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
-
modifyTemperature
public abstract float modifyTemperature(BlockPos p_241852_1_, float p_241852_2_)
-
getName
public java.lang.String getName()
-
getSerializedName
public java.lang.String getSerializedName()
- Specified by:
getSerializedName
in interfaceIStringSerializable
-
byName
public static Biome.TemperatureModifier byName(java.lang.String p_242477_0_)
-
-