public static enum BiomeEffects.GrassColorModifier extends Enum<BiomeEffects.GrassColorModifier> implements StringIdentifiable
Enum Constant and Description |
---|
DARK_FOREST |
NONE |
SWAMP |
Modifier and Type | Field and Description |
---|---|
private static Map<String,BiomeEffects.GrassColorModifier> |
BY_NAME |
static com.mojang.serialization.Codec<BiomeEffects.GrassColorModifier> |
CODEC |
private String |
name |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
static BiomeEffects.GrassColorModifier |
byName(String name) |
abstract int |
getModifiedGrassColor(double x,
double z,
int color) |
String |
getName() |
static BiomeEffects.GrassColorModifier |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BiomeEffects.GrassColorModifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
createCodec, createCodec, method_28142
public static final BiomeEffects.GrassColorModifier NONE
public static final BiomeEffects.GrassColorModifier DARK_FOREST
public static final BiomeEffects.GrassColorModifier SWAMP
public static final com.mojang.serialization.Codec<BiomeEffects.GrassColorModifier> CODEC
private static final Map<String,BiomeEffects.GrassColorModifier> BY_NAME
private final String name
public static BiomeEffects.GrassColorModifier[] values()
for (BiomeEffects.GrassColorModifier c : BiomeEffects.GrassColorModifier.values()) System.out.println(c);
public static BiomeEffects.GrassColorModifier valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Environment(value=CLIENT) public abstract int getModifiedGrassColor(double x, double z, int color)
public String getName()
public String asString()
asString
in interface StringIdentifiable
public static BiomeEffects.GrassColorModifier byName(String name)