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 always0
during biome generation and does not use noise. This means that setting it to a non-null number will make the biome smaller. The fartheroffset
is from0
, the smaller the biome will be. For this, it does not matter whetheroffset
is 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 cbh$d
intermediary net/minecraft/class_6544$class_4762
named net/minecraft/world/biome/source/util/MultiNoiseUtil$NoiseHypercube
official b
intermediary comp_105
named temperature
official c
intermediary comp_106
named humidity
official d
intermediary comp_107
named continentalness
official e
intermediary comp_108
named erosion
official f
intermediary comp_109
named depth
official g
intermediary comp_110
named weirdness
official h
intermediary comp_111
named offset
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MultiNoiseUtil.NoiseHypercube>
private final MultiNoiseUtil.ParameterRange
The field for thecontinentalness
record component.private final MultiNoiseUtil.ParameterRange
The field for thedepth
record component.private final MultiNoiseUtil.ParameterRange
The field for theerosion
record component.private final MultiNoiseUtil.ParameterRange
The field for thehumidity
record component.private final long
The field for theoffset
record component.private final MultiNoiseUtil.ParameterRange
The field for thetemperature
record component.private final MultiNoiseUtil.ParameterRange
The field for theweirdness
record component. -
Constructor Summary
ConstructorDescriptionNoiseHypercube
(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 thecontinentalness
record component.depth()
Returns the value of thedepth
record component.final boolean
Indicates whether some other object is "equal to" this one.erosion()
Returns the value of theerosion
record component.protected List<MultiNoiseUtil.ParameterRange>
(package private) long
Calculates the distance from this noise point to another one.final int
hashCode()
Returns a hash code value for this object.humidity()
Returns the value of thehumidity
record component.long
offset()
Returns the value of theoffset
record component.Returns the value of thetemperature
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theweirdness
record component.
-
Field Details
-
temperature
The field for thetemperature
record component. -
humidity
The field for thehumidity
record component. -
continentalness
The field for thecontinentalness
record component. -
erosion
The field for theerosion
record component. -
depth
The field for thedepth
record component. -
weirdness
The field for theweirdness
record component. -
offset
private final long offsetThe field for theoffset
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lcbh$d;a:Lcom/mojang/serialization/Codec;
intermediary field_24679
Lnet/minecraft/class_6544$class_4762;field_24679:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/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>
Lcbh$d;<init>(Lcbh$b;Lcbh$b;Lcbh$b;Lcbh$b;Lcbh$b;Lcbh$b;J)V
intermediary <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)V
named <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 a
Lcbh$d;a(Lcbh$h;)J
intermediary method_24381
Lnet/minecraft/class_6544$class_4762;method_24381(Lnet/minecraft/class_6544$class_6553;)J
named getSquaredDistance
Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$NoiseHypercube;getSquaredDistance(Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$NoiseValuePoint;)J
-
getParameters
- Mappings:
Namespace Name Mixin selector official a
Lcbh$d;a()Ljava/util/List;
intermediary method_38145
Lnet/minecraft/class_6544$class_4762;method_38145()Ljava/util/List;
named getParameters
Lnet/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 thetemperature
record component.- Returns:
- the value of the
temperature
record component
-
humidity
Returns the value of thehumidity
record component.- Returns:
- the value of the
humidity
record component
-
continentalness
Returns the value of thecontinentalness
record component.- Returns:
- the value of the
continentalness
record component
-
erosion
Returns the value of theerosion
record component.- Returns:
- the value of the
erosion
record component
-
depth
Returns the value of thedepth
record component.- Returns:
- the value of the
depth
record component
-
weirdness
Returns the value of theweirdness
record component.- Returns:
- the value of the
weirdness
record component
-
offset
public long offset()Returns the value of theoffset
record component.- Returns:
- the value of the
offset
record component
-