Package net.minecraft.world.biome
Enum Class BiomeAmbience.GrassColorModifier
java.lang.Object
java.lang.Enum<BiomeAmbience.GrassColorModifier>
net.minecraft.world.biome.BiomeAmbience.GrassColorModifier
- All Implemented Interfaces:
Serializable
,Comparable<BiomeAmbience.GrassColorModifier>
,Constable
,IStringSerializable
,IExtensibleEnum
- Enclosing class:
- BiomeAmbience
public static enum BiomeAmbience.GrassColorModifier
extends Enum<BiomeAmbience.GrassColorModifier>
implements IStringSerializable, IExtensibleEnum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<String,
BiomeAmbience.GrassColorModifier> static final com.mojang.serialization.Codec<BiomeAmbience.GrassColorModifier>
private final String
-
Constructor Summary
ModifierConstructorDescriptionprivate
GrassColorModifier
(String p_i241940_3_) private
GrassColorModifier
(String name, BiomeAmbience.GrassColorModifier.ColorModifier delegate) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(String name, String id, BiomeAmbience.GrassColorModifier.ColorModifier delegate) getName()
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_) Returns the enum constant of this class with the specified name.static BiomeAmbience.GrassColorModifier[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
DARK_FOREST
-
SWAMP
-
-
Field Details
-
name
-
CODEC
-
BY_NAME
-
delegate
-
-
Constructor Details
-
GrassColorModifier
-
GrassColorModifier
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- 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(String name, 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
-
getSerializedName
- Specified by:
getSerializedName
in interfaceIStringSerializable
-
byName
-