类 Biome.MixedNoisePoint
- java.lang.Object
-
- net.minecraft.world.biome.Biome.MixedNoisePoint
-
- 封闭类:
- Biome
public static class Biome.MixedNoisePoint extends Object
Represents a point in a multi-dimensional cartesian plane. Mixed-noise biome generator picks the closest noise point from its selected point and choose the biome associated to that closest point. Another factor, rarity potential, favors larger differences in values instead, contrary to other point values.- Mappings:
Namespace Name official bwq$cintermediary net/minecraft/class_1959$class_4762named net/minecraft/world/biome/Biome$MixedNoisePoint
-
-
字段概要
字段 修饰符和类型 字段 说明 private floataltitudestatic com.mojang.serialization.Codec<Biome.MixedNoisePoint>CODECprivate floathumidityprivate floattemperatureprivate floatweightThis value awards another point with value farthest from this one; i.e.private floatweirdness
-
构造器概要
构造器 构造器 说明 MixedNoisePoint(float temperature, float humidity, float altitude, float weirdness, float weight)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 floatcalculateDistanceTo(Biome.MixedNoisePoint other)Calculates the distance from this noise point to another one.booleanequals(Object object)inthashCode()StringtoString()
-
-
-
字段详细资料
-
CODEC
public static final com.mojang.serialization.Codec<Biome.MixedNoisePoint> CODEC
- Mappings:
Namespace Name Mixin selector official aLbwq$c;a:Lcom/mojang/serialization/Codec;intermediary field_24679Lnet/minecraft/class_1959$class_4762;field_24679:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/biome/Biome$MixedNoisePoint;CODEC:Lcom/mojang/serialization/Codec;
-
temperature
private final float temperature
- Mappings:
Namespace Name Mixin selector official bLbwq$c;b:Fintermediary field_22043Lnet/minecraft/class_1959$class_4762;field_22043:Fnamed temperatureLnet/minecraft/world/biome/Biome$MixedNoisePoint;temperature:F
-
humidity
private final float humidity
- Mappings:
Namespace Name Mixin selector official cLbwq$c;c:Fintermediary field_22044Lnet/minecraft/class_1959$class_4762;field_22044:Fnamed humidityLnet/minecraft/world/biome/Biome$MixedNoisePoint;humidity:F
-
altitude
private final float altitude
- Mappings:
Namespace Name Mixin selector official dLbwq$c;d:Fintermediary field_22045Lnet/minecraft/class_1959$class_4762;field_22045:Fnamed altitudeLnet/minecraft/world/biome/Biome$MixedNoisePoint;altitude:F
-
weirdness
private final float weirdness
- Mappings:
Namespace Name Mixin selector official eLbwq$c;e:Fintermediary field_22046Lnet/minecraft/class_1959$class_4762;field_22046:Fnamed weirdnessLnet/minecraft/world/biome/Biome$MixedNoisePoint;weirdness:F
-
weight
private final float weight
This value awards another point with value farthest from this one; i.e. unlike other points where closer distance is better, for this value the farther the better. The result of the different values can be approximately modeled by a hyperbola weight=cosh(peak-1) as used by the mixed-noise generator.- Mappings:
Namespace Name Mixin selector official fLbwq$c;f:Fintermediary field_22047Lnet/minecraft/class_1959$class_4762;field_22047:Fnamed weightLnet/minecraft/world/biome/Biome$MixedNoisePoint;weight:F
-
-
构造器详细资料
-
MixedNoisePoint
public MixedNoisePoint(float temperature, float humidity, float altitude, float weirdness, float weight)- Mappings:
Namespace Name Mixin selector official <init>Lbwq$c;<init>(FFFFF)Vintermediary <init>Lnet/minecraft/class_1959$class_4762;<init>(FFFFF)Vnamed <init>Lnet/minecraft/world/biome/Biome$MixedNoisePoint;<init>(FFFFF)V
-
-
方法详细资料
-
toString
public String toString()
-
equals
public boolean equals(Object object)
-
hashCode
public int hashCode()
-
calculateDistanceTo
public float calculateDistanceTo(Biome.MixedNoisePoint other)
Calculates the distance from this noise point to another one. The distance is a squared distance in a multi-dimensional cartesian plane from a mathematical point of view, with a special parameter that reduces the calculated distance.For most fields except weight, smaller difference between two points' fields will lead to smaller distance. For weight, 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- Mappings:
Namespace Name Mixin selector official aLbwq$c;a(Lbwq$c;)Fintermediary method_24381Lnet/minecraft/class_1959$class_4762;method_24381(Lnet/minecraft/class_1959$class_4762;)Fnamed calculateDistanceToLnet/minecraft/world/biome/Biome$MixedNoisePoint;calculateDistanceTo(Lnet/minecraft/world/biome/Biome$MixedNoisePoint;)F
-
-