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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceNested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface StringRepresentable
StringRepresentable.EnumCodec<E>, StringRepresentable.StringRepresentableCodec<S> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BiomeSpecialEffects.GrassColorModifier> private final BiomeSpecialEffects.GrassColorModifier.ColorModifierprivate final StringFields inherited from interface StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionInfogetName()intmodifyColor(double x, double z, int baseColor) 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
-
delegate
-
CODEC
-
-
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 x, double z, int baseColor) -
getName
-
getSerializedName
- Specified by:
getSerializedNamein interfaceStringRepresentable
-
getExtensionInfo
-