Record Class Climate.ParameterPoint

java.lang.Object
java.lang.Record
net.minecraft.world.level.biome.Climate.ParameterPoint
Enclosing class:
Climate

public static record Climate.ParameterPoint(Climate.Parameter temperature, Climate.Parameter humidity, Climate.Parameter continentalness, Climate.Parameter erosion, Climate.Parameter depth, Climate.Parameter weirdness, long offset) extends Record
  • Field Details

    • temperature

      private final Climate.Parameter temperature
      The field for the temperature record component.
    • humidity

      private final Climate.Parameter humidity
      The field for the humidity record component.
    • continentalness

      private final Climate.Parameter continentalness
      The field for the continentalness record component.
    • erosion

      private final Climate.Parameter erosion
      The field for the erosion record component.
    • depth

      private final Climate.Parameter depth
      The field for the depth record component.
    • weirdness

      private final Climate.Parameter weirdness
      The field for the weirdness record component.
    • offset

      private final long offset
      The field for the offset record component.
    • CODEC

      public static final com.mojang.serialization.Codec<Climate.ParameterPoint> CODEC
  • Constructor Details

    • ParameterPoint

      public ParameterPoint(Climate.Parameter temperature, Climate.Parameter humidity, Climate.Parameter continentalness, Climate.Parameter erosion, Climate.Parameter depth, Climate.Parameter weirdness, long offset)
      Creates an instance of a ParameterPoint record class.
      Parameters:
      temperature - the value for the temperature record component
      humidity - the value for the humidity record component
      continentalness - the value for the continentalness record component
      erosion - the value for the erosion record component
      depth - the value for the depth record component
      weirdness - the value for the weirdness record component
      offset - the value for the offset record component
  • Method Details

    • fitness

      long fitness(Climate.TargetPoint p_186883_)
    • parameterSpace

      protected List<Climate.Parameter> parameterSpace()
    • 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 Climate.Parameter temperature()
      Returns the value of the temperature record component.
      Returns:
      the value of the temperature record component
    • humidity

      public Climate.Parameter humidity()
      Returns the value of the humidity record component.
      Returns:
      the value of the humidity record component
    • continentalness

      public Climate.Parameter continentalness()
      Returns the value of the continentalness record component.
      Returns:
      the value of the continentalness record component
    • erosion

      public Climate.Parameter erosion()
      Returns the value of the erosion record component.
      Returns:
      the value of the erosion record component
    • depth

      public Climate.Parameter depth()
      Returns the value of the depth record component.
      Returns:
      the value of the depth record component
    • weirdness

      public Climate.Parameter 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