Package net.minecraft.world.level.biome
Enum Class TerrainShaper.Coordinate
- All Implemented Interfaces:
Serializable
,Comparable<TerrainShaper.Coordinate>
,Constable
,StringRepresentable
,ToFloatFunction<TerrainShaper.Point>
- Enclosing class:
- TerrainShaper
@VisibleForTesting
protected static enum TerrainShaper.Coordinate
extends Enum<TerrainShaper.Coordinate>
implements StringRepresentable, ToFloatFunction<TerrainShaper.Point>
-
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,
TerrainShaper.Coordinate> private static final com.mojang.serialization.Codec<TerrainShaper.Coordinate>
private final String
private final ToFloatFunction<TerrainShaper.Point>
(package private) static final com.mojang.serialization.Codec<ToFloatFunction<TerrainShaper.Point>>
-
Constructor Summary
ModifierConstructorDescriptionprivate
Coordinate
(ToFloatFunction<TerrainShaper.Point> p_187359_, String p_187360_) -
Method Summary
Modifier and TypeMethodDescriptionfloat
apply
(TerrainShaper.Point p_187367_) toString()
static TerrainShaper.Coordinate
Returns the enum constant of this class with the specified name.static TerrainShaper.Coordinate[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTINENTS
-
EROSION
-
WEIRDNESS
-
RIDGES
Deprecated.
-
-
Field Details
-
BY_NAME
-
CODEC
-
WIDE_CODEC
-
reference
-
name
-
-
Constructor Details
-
Coordinate
-
-
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
-
getSerializedName
- Specified by:
getSerializedName
in interfaceStringRepresentable
-
toString
- Overrides:
toString
in classEnum<TerrainShaper.Coordinate>
-
apply
- Specified by:
apply
in interfaceToFloatFunction<TerrainShaper.Point>
-