Package net.minecraft.world.biome
Enum BiomeAmbience.GrassColorModifier
- java.lang.Object
-
- java.lang.Enum<BiomeAmbience.GrassColorModifier>
-
- net.minecraft.world.biome.BiomeAmbience.GrassColorModifier
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BiomeAmbience.GrassColorModifier>
,IStringSerializable
,IExtensibleEnum
- Enclosing class:
- BiomeAmbience
public static enum BiomeAmbience.GrassColorModifier extends java.lang.Enum<BiomeAmbience.GrassColorModifier> implements IStringSerializable, IExtensibleEnum
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BiomeAmbience.GrassColorModifier.ColorModifier
-
Enum Constant Summary
Enum Constants Enum Constant Description DARK_FOREST
NONE
SWAMP
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.String,BiomeAmbience.GrassColorModifier>
BY_NAME
static com.mojang.serialization.Codec<BiomeAmbience.GrassColorModifier>
CODEC
private BiomeAmbience.GrassColorModifier.ColorModifier
delegate
private java.lang.String
name
-
Constructor Summary
Constructors Modifier Constructor Description private
GrassColorModifier(java.lang.String p_i241940_3_)
private
GrassColorModifier(java.lang.String name, BiomeAmbience.GrassColorModifier.ColorModifier delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BiomeAmbience.GrassColorModifier
byName(java.lang.String p_242546_0_)
static BiomeAmbience.GrassColorModifier
create(java.lang.String name, java.lang.String id, BiomeAmbience.GrassColorModifier.ColorModifier delegate)
java.lang.String
getName()
java.lang.String
getSerializedName()
void
init()
Called by generated factory code to do any post-constructor setup required by the enum.int
modifyColor(double p_241853_1_, double p_241853_3_, int p_241853_5_)
static BiomeAmbience.GrassColorModifier
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BiomeAmbience.GrassColorModifier[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final BiomeAmbience.GrassColorModifier NONE
-
DARK_FOREST
public static final BiomeAmbience.GrassColorModifier DARK_FOREST
-
SWAMP
public static final BiomeAmbience.GrassColorModifier SWAMP
-
-
Field Detail
-
name
private final java.lang.String name
-
CODEC
public static final com.mojang.serialization.Codec<BiomeAmbience.GrassColorModifier> CODEC
-
BY_NAME
private static final java.util.Map<java.lang.String,BiomeAmbience.GrassColorModifier> BY_NAME
-
delegate
private BiomeAmbience.GrassColorModifier.ColorModifier delegate
-
-
Constructor Detail
-
GrassColorModifier
private GrassColorModifier(java.lang.String p_i241940_3_)
-
GrassColorModifier
private GrassColorModifier(java.lang.String name, BiomeAmbience.GrassColorModifier.ColorModifier delegate)
-
-
Method Detail
-
values
public static BiomeAmbience.GrassColorModifier[] 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 (BiomeAmbience.GrassColorModifier c : BiomeAmbience.GrassColorModifier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BiomeAmbience.GrassColorModifier 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
-
modifyColor
public int modifyColor(double p_241853_1_, double p_241853_3_, int p_241853_5_)
-
create
public static BiomeAmbience.GrassColorModifier create(java.lang.String name, java.lang.String id, BiomeAmbience.GrassColorModifier.ColorModifier delegate)
-
init
public void init()
Description copied from interface:IExtensibleEnum
Called by generated factory code to do any post-constructor setup required by the enum. Should not be called manually.- Specified by:
init
in interfaceIExtensibleEnum
-
getName
public java.lang.String getName()
-
getSerializedName
public java.lang.String getSerializedName()
- Specified by:
getSerializedName
in interfaceIStringSerializable
-
byName
public static BiomeAmbience.GrassColorModifier byName(java.lang.String p_242546_0_)
-
-