Record Class Climate.TargetPoint

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

public static record Climate.TargetPoint(long temperature, long humidity, long continentalness, long erosion, long depth, long weirdness) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final long
    The field for the continentalness record component.
    private final long
    The field for the depth record component.
    private final long
    The field for the erosion record component.
    private final long
    The field for the humidity record component.
    private final long
    The field for the temperature record component.
    private final long
    The field for the weirdness record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TargetPoint(long temperature, long humidity, long continentalness, long erosion, long depth, long weirdness)
    Creates an instance of a TargetPoint record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the continentalness record component.
    long
    Returns the value of the depth record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the erosion record component.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the humidity record component.
    long
    Returns the value of the temperature record component.
    protected long[]
     
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the weirdness record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • temperature

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

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

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

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

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

      private final long weirdness
      The field for the weirdness record component.
  • Constructor Details

    • TargetPoint

      public TargetPoint(long temperature, long humidity, long continentalness, long erosion, long depth, long weirdness)
      Creates an instance of a TargetPoint 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
  • Method Details

    • toParameterArray

      protected long[] toParameterArray()
    • 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. All components in this record class 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 long temperature()
      Returns the value of the temperature record component.
      Returns:
      the value of the temperature record component
    • humidity

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

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

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

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

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