Record Class MultiNoiseUtil.NoiseHypercube
java.lang.Object
java.lang.Record
net.minecraft.world.biome.source.util.MultiNoiseUtil.NoiseHypercube
- Record Components:
temperature-humidity-continentalness-erosion-depth-weirdness-offset- This value works differently from the other parameters, in that it is always0during biome generation and does not use noise. This means that setting it to a non-null number will make the biome smaller. The fartheroffsetis from0, the smaller the biome will be. For this, it does not matter whetheroffsetis positive or negative.
- Enclosing class:
MultiNoiseUtil
public static record MultiNoiseUtil.NoiseHypercube(MultiNoiseUtil.ParameterRange temperature, MultiNoiseUtil.ParameterRange humidity, MultiNoiseUtil.ParameterRange continentalness, MultiNoiseUtil.ParameterRange erosion, MultiNoiseUtil.ParameterRange depth, MultiNoiseUtil.ParameterRange weirdness, long offset)
extends Record
Represents a hypercube in a multi-dimensional cartesian plane. The multi-noise
biome source picks the closest noise hypercube from its selected point
and chooses the biome associated to it.
- Mappings:
Namespace Name official cnr$dintermediary net/minecraft/class_6544$class_4762named net/minecraft/world/biome/source/util/MultiNoiseUtil$NoiseHypercubeofficial bintermediary comp_105named temperatureofficial cintermediary comp_106named humidityofficial dintermediary comp_107named continentalnessofficial eintermediary comp_108named erosionofficial fintermediary comp_109named depthofficial gintermediary comp_110named weirdnessofficial hintermediary comp_111named offset
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MultiNoiseUtil.NoiseHypercube>private final MultiNoiseUtil.ParameterRangeThe field for thecontinentalnessrecord component.private final MultiNoiseUtil.ParameterRangeThe field for thedepthrecord component.private final MultiNoiseUtil.ParameterRangeThe field for theerosionrecord component.private final MultiNoiseUtil.ParameterRangeThe field for thehumidityrecord component.private final longThe field for theoffsetrecord component.private final MultiNoiseUtil.ParameterRangeThe field for thetemperaturerecord component.private final MultiNoiseUtil.ParameterRangeThe field for theweirdnessrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNoiseHypercube(MultiNoiseUtil.ParameterRange temperature, MultiNoiseUtil.ParameterRange humidity, MultiNoiseUtil.ParameterRange continentalness, MultiNoiseUtil.ParameterRange erosion, MultiNoiseUtil.ParameterRange depth, MultiNoiseUtil.ParameterRange weirdness, long long2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontinentalnessrecord component.depth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.erosion()Returns the value of theerosionrecord component.protected List<MultiNoiseUtil.ParameterRange>(package private) longCalculates the distance from this noise point to another one.final inthashCode()Returns a hash code value for this object.humidity()Returns the value of thehumidityrecord component.longoffset()Returns the value of theoffsetrecord component.Returns the value of thetemperaturerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theweirdnessrecord component.
-
Field Details
-
temperature
The field for thetemperaturerecord component. -
humidity
The field for thehumidityrecord component. -
continentalness
The field for thecontinentalnessrecord component. -
erosion
The field for theerosionrecord component. -
depth
The field for thedepthrecord component. -
weirdness
The field for theweirdnessrecord component. -
offset
private final long offsetThe field for theoffsetrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLcnr$d;a:Lcom/mojang/serialization/Codec;intermediary field_24679Lnet/minecraft/class_6544$class_4762;field_24679:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/biome/source/util/MultiNoiseUtil$NoiseHypercube;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
NoiseHypercube
public NoiseHypercube(MultiNoiseUtil.ParameterRange temperature, MultiNoiseUtil.ParameterRange humidity, MultiNoiseUtil.ParameterRange continentalness, MultiNoiseUtil.ParameterRange erosion, MultiNoiseUtil.ParameterRange depth, MultiNoiseUtil.ParameterRange weirdness, long long2) - Mappings:
Namespace Name Mixin selector official <init>Lcnr$d;<init>(Lcnr$b;Lcnr$b;Lcnr$b;Lcnr$b;Lcnr$b;Lcnr$b;J)Vintermediary <init>Lnet/minecraft/class_6544$class_4762;<init>(Lnet/minecraft/class_6544$class_6546;Lnet/minecraft/class_6544$class_6546;Lnet/minecraft/class_6544$class_6546;Lnet/minecraft/class_6544$class_6546;Lnet/minecraft/class_6544$class_6546;Lnet/minecraft/class_6544$class_6546;J)Vnamed <init>Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$NoiseHypercube;<init>(Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;J)V
-
-
Method Details
-
getSquaredDistance
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.
- Mappings:
Namespace Name Mixin selector official aLcnr$d;a(Lcnr$h;)Jintermediary method_24381Lnet/minecraft/class_6544$class_4762;method_24381(Lnet/minecraft/class_6544$class_6553;)Jnamed getSquaredDistanceLnet/minecraft/world/biome/source/util/MultiNoiseUtil$NoiseHypercube;getSquaredDistance(Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$NoiseValuePoint;)J
-
getParameters
- Mappings:
Namespace Name Mixin selector official aLcnr$d;a()Ljava/util/List;intermediary method_38145Lnet/minecraft/class_6544$class_4762;method_38145()Ljava/util/List;named getParametersLnet/minecraft/world/biome/source/util/MultiNoiseUtil$NoiseHypercube;getParameters()Ljava/util/List;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
temperature
Returns the value of thetemperaturerecord component.- Returns:
- the value of the
temperaturerecord component
-
humidity
Returns the value of thehumidityrecord component.- Returns:
- the value of the
humidityrecord component
-
continentalness
Returns the value of thecontinentalnessrecord component.- Returns:
- the value of the
continentalnessrecord component
-
erosion
Returns the value of theerosionrecord component.- Returns:
- the value of the
erosionrecord component
-
depth
Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
weirdness
Returns the value of theweirdnessrecord component.- Returns:
- the value of the
weirdnessrecord component
-
offset
public long offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-