Package net.minecraft.world.level.biome
Enum Class BiomeSpecialEffects.GrassColorModifier
java.lang.Object
java.lang.Enum<BiomeSpecialEffects.GrassColorModifier>
net.minecraft.world.level.biome.BiomeSpecialEffects.GrassColorModifier
- All Implemented Interfaces:
Serializable
,Comparable<BiomeSpecialEffects.GrassColorModifier>
,Constable
,StringRepresentable
,IExtensibleEnum
- Enclosing class:
- BiomeSpecialEffects
public static enum BiomeSpecialEffects.GrassColorModifier
extends Enum<BiomeSpecialEffects.GrassColorModifier>
implements StringRepresentable, IExtensibleEnum
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
StringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<String,
BiomeSpecialEffects.GrassColorModifier> static final com.mojang.serialization.Codec<BiomeSpecialEffects.GrassColorModifier>
private final String
Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(String name, String id, BiomeSpecialEffects.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_48065_, double p_48066_, int p_48067_) Returns the enum constant of this class with the specified name.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
private GrassColorModifier(String name, BiomeSpecialEffects.GrassColorModifier.ColorModifier delegate)
-
-
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_48065_, double p_48066_, int p_48067_) -
create
public static BiomeSpecialEffects.GrassColorModifier create(String name, String id, BiomeSpecialEffects.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
-
byName
-
getName
-
getSerializedName
- Specified by:
getSerializedName
in interfaceStringRepresentable
-