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 privateScaleLayer() -
Method Summary
Modifier and Type Method Description protected intsample(LayerSampleContext<?> context, int int2, int int3, int int4, int int5)intsample(LayerSampleContext<?> context, LayerSampler parent, int x, int z)inttransformX(int x)inttransformZ(int y)static ScaleLayervalueOf(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, valueOfMethods 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:
transformXin interfaceCoordinateTransformer
-
transformZ
public int transformZ(int y)- Specified by:
transformZin interfaceCoordinateTransformer
-
sample
- Specified by:
samplein interfaceParentedLayer
-
sample
-