public static class Biome.MixedNoisePoint extends Object
Modifier and Type | Field and Description |
---|---|
private float |
altitude |
static com.mojang.serialization.Codec<Biome.MixedNoisePoint> |
CODEC |
private float |
humidity |
private float |
temperature |
private float |
weight
This value awards another point with value farthest from this one; i.e.
|
private float |
weirdness |
Constructor and Description |
---|
MixedNoisePoint(float temperature,
float humidity,
float altitude,
float weirdness,
float weight) |
Modifier and Type | Method and Description |
---|---|
float |
calculateDistanceTo(Biome.MixedNoisePoint other)
Calculates the distance from this noise point to another one.
|
boolean |
equals(Object object) |
int |
hashCode() |
public static final com.mojang.serialization.Codec<Biome.MixedNoisePoint> CODEC
private final float temperature
private final float humidity
private final float altitude
private final float weirdness
private final float weight
public MixedNoisePoint(float temperature, float humidity, float altitude, float weirdness, float weight)
public float calculateDistanceTo(Biome.MixedNoisePoint other)
For most fields except rarity potential, smaller difference between two points' fields will lead to smaller distance. For rarity potential, larger differences lead to smaller distance.
This distance is used by the mixed-noise biome layer source. The layer source calculates an arbitrary noise point, and selects the biome that offers a closest point to its arbitrary point.
other
- the other noise point