Package net.minecraft.world.biome.layer
Enum ScaleLayer
- All Implemented Interfaces:
Serializable
,Comparable<ScaleLayer>
,java.lang.constant.Constable
,ParentedLayer
,CoordinateTransformer
public enum ScaleLayer extends Enum<ScaleLayer> implements ParentedLayer
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
ScaleLayer()
-
Method Summary
Modifier and Type Method Description protected int
sample(LayerSampleContext<?> context, int int2, int int3, int int4, int int5)
int
sample(LayerSampleContext<?> context, LayerSampler parent, int x, int z)
int
transformX(int x)
int
transformZ(int y)
static ScaleLayer
valueOf(String name)
Returns the enum constant of this type with the specified name.static ScaleLayer[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.minecraft.world.biome.layer.type.ParentedLayer
create
-
Enum Constant Details
-
NORMAL
-
FUZZY
-
-
Constructor Details
-
ScaleLayer
private ScaleLayer()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
transformX
public int transformX(int x)- Specified by:
transformX
in interfaceCoordinateTransformer
-
transformZ
public int transformZ(int y)- Specified by:
transformZ
in interfaceCoordinateTransformer
-
sample
- Specified by:
sample
in interfaceParentedLayer
-
sample
-