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 always 0 during biome generation and does not use noise. This means that setting it to a non-null number will make the biome smaller. The farther offset is from 0, the smaller the biome will be. For this, it does not matter whether offset 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 clc$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 Details

  • Constructor Details

    • NoiseHypercube

      Mappings:
      Namespace Name Mixin selector
      official <init> Lclc$d;<init>(Lclc$b;Lclc$b;Lclc$b;Lclc$b;Lclc$b;Lclc$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

      long getSquaredDistance(MultiNoiseUtil.NoiseValuePoint point)
      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 Lclc$d;a(Lclc$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

      protected List<MultiNoiseUtil.ParameterRange> getParameters()
      Mappings:
      Namespace Name Mixin selector
      official a Lclc$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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • temperature

      public MultiNoiseUtil.ParameterRange temperature()
      Returns the value of the temperature record component.
      Returns:
      the value of the temperature record component
    • humidity

      public MultiNoiseUtil.ParameterRange humidity()
      Returns the value of the humidity record component.
      Returns:
      the value of the humidity record component
    • continentalness

      public MultiNoiseUtil.ParameterRange continentalness()
      Returns the value of the continentalness record component.
      Returns:
      the value of the continentalness record component
    • erosion

      Returns the value of the erosion record component.
      Returns:
      the value of the erosion record component
    • depth

      Returns the value of the depth record component.
      Returns:
      the value of the depth record component
    • weirdness

      public MultiNoiseUtil.ParameterRange weirdness()
      Returns the value of the weirdness record component.
      Returns:
      the value of the weirdness record component
    • offset

      public long offset()
      Returns the value of the offset record component.
      Returns:
      the value of the offset record component