Class BiomeElevation
java.lang.Object
org.cloudburstmc.server.level.generator.standard.biome.BiomeElevation
- Direct Known Subclasses:
BiomeElevation.Absolute,BiomeElevation.Vanilla
Describes the elevation range of a biome.
- Author:
- DaPorkchop_
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImplementation ofBiomeElevationwhich takes height and variation values given in blocks.static classImplementation ofBiomeElevationwhich takes height and variation values in the format used by vanilla Minecraft. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic BiomeElevationprotected doubleprotected doubleprotected doubleprotected double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubledoubledoubleprotected abstract doublenormalizeHeight(double height)protected abstract doublenormalizeVariation(double variation)
-
Field Details
-
DEFAULT
-
height
protected final double height -
variation
protected final double variation -
normalizedHeight
protected final double normalizedHeight -
normalizedVariation
protected final double normalizedVariation
-
-
Constructor Details
-
BiomeElevation
public BiomeElevation(double height, double variation)
-
-
Method Details
-
getHeight
public double getHeight()- Returns:
- the raw height value
-
getVariation
public double getVariation()- Returns:
- the raw variation value
-
getNormalizedHeight
public double getNormalizedHeight()- Returns:
- the normalized height value
-
getNormalizedVariation
public double getNormalizedVariation()- Returns:
- the normalized variation value
-
normalizeHeight
protected abstract double normalizeHeight(double height) -
normalizeVariation
protected abstract double normalizeVariation(double variation)
-