Record Class Climate.Sampler

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

public static record Climate.Sampler(DensitySampler.Bound temperature, DensitySampler.Bound humidity, DensitySampler.Bound continentalness, DensitySampler.Bound erosion, DensitySampler.Bound depth, DensitySampler.Bound weirdness) extends Record
  • Field Details

    • temperature

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

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

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

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

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

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

    • Sampler

      public Sampler(DensitySampler.Bound temperature, DensitySampler.Bound humidity, DensitySampler.Bound continentalness, DensitySampler.Bound erosion, DensitySampler.Bound depth, DensitySampler.Bound weirdness)
      Creates an instance of a Sampler 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

    • sample

      public Climate.TargetPoint sample(int quartX, int quartY, int quartZ)
    • 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 Objects::equals(Object,Object).
      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 DensitySampler.Bound temperature()
      Returns the value of the temperature record component.
      Returns:
      the value of the temperature record component
    • humidity

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

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

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

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

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