Record Class OverworldFunctionSet<T>

java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.OverworldFunctionSet<T>

public record OverworldFunctionSet<T>(T temperature, T vegetation, T continents, T erosion, T offset, T factor, T jaggedness, T depth, T slopedCheese, T preliminarySurfaceLevel, T chunkSurfaceLevel, T finalDensity) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final T
    The field for the chunkSurfaceLevel record component.
    private final T
    The field for the continents record component.
    private final T
    The field for the depth record component.
    private final T
    The field for the erosion record component.
    private final T
    The field for the factor record component.
    private final T
    The field for the finalDensity record component.
    private final T
    The field for the jaggedness record component.
    private final T
    The field for the offset record component.
    private final T
    The field for the preliminarySurfaceLevel record component.
    private final T
    The field for the slopedCheese record component.
    private final T
    The field for the temperature record component.
    private final T
    The field for the vegetation record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    OverworldFunctionSet(T temperature, T vegetation, T continents, T erosion, T offset, T factor, T jaggedness, T depth, T slopedCheese, T preliminarySurfaceLevel, T chunkSurfaceLevel, T finalDensity)
    Creates an instance of a OverworldFunctionSet record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the chunkSurfaceLevel record component.
    Returns the value of the continents record component.
    Returns the value of the depth record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the erosion record component.
    Returns the value of the factor record component.
    Returns the value of the finalDensity record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the jaggedness record component.
    map(Function<T,U> function)
     
    Returns the value of the offset record component.
    Returns the value of the preliminarySurfaceLevel record component.
    Returns the value of the slopedCheese record component.
    Returns the value of the temperature record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the vegetation record component.

    Methods inherited from class Object

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

    • temperature

      private final T temperature
      The field for the temperature record component.
    • vegetation

      private final T vegetation
      The field for the vegetation record component.
    • continents

      private final T continents
      The field for the continents record component.
    • erosion

      private final T erosion
      The field for the erosion record component.
    • offset

      private final T offset
      The field for the offset record component.
    • factor

      private final T factor
      The field for the factor record component.
    • jaggedness

      private final T jaggedness
      The field for the jaggedness record component.
    • depth

      private final T depth
      The field for the depth record component.
    • slopedCheese

      private final T slopedCheese
      The field for the slopedCheese record component.
    • preliminarySurfaceLevel

      private final T preliminarySurfaceLevel
      The field for the preliminarySurfaceLevel record component.
    • chunkSurfaceLevel

      private final T chunkSurfaceLevel
      The field for the chunkSurfaceLevel record component.
    • finalDensity

      private final T finalDensity
      The field for the finalDensity record component.
  • Constructor Details

    • OverworldFunctionSet

      public OverworldFunctionSet(T temperature, T vegetation, T continents, T erosion, T offset, T factor, T jaggedness, T depth, T slopedCheese, T preliminarySurfaceLevel, T chunkSurfaceLevel, T finalDensity)
      Creates an instance of a OverworldFunctionSet record class.
      Parameters:
      temperature - the value for the temperature record component
      vegetation - the value for the vegetation record component
      continents - the value for the continents record component
      erosion - the value for the erosion record component
      offset - the value for the offset record component
      factor - the value for the factor record component
      jaggedness - the value for the jaggedness record component
      depth - the value for the depth record component
      slopedCheese - the value for the slopedCheese record component
      preliminarySurfaceLevel - the value for the preliminarySurfaceLevel record component
      chunkSurfaceLevel - the value for the chunkSurfaceLevel record component
      finalDensity - the value for the finalDensity record component
  • Method Details

    • map

      public <U> OverworldFunctionSet<U> map(Function<T,U> function)
    • 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 T temperature()
      Returns the value of the temperature record component.
      Returns:
      the value of the temperature record component
    • vegetation

      public T vegetation()
      Returns the value of the vegetation record component.
      Returns:
      the value of the vegetation record component
    • continents

      public T continents()
      Returns the value of the continents record component.
      Returns:
      the value of the continents record component
    • erosion

      public T erosion()
      Returns the value of the erosion record component.
      Returns:
      the value of the erosion record component
    • offset

      public T offset()
      Returns the value of the offset record component.
      Returns:
      the value of the offset record component
    • factor

      public T factor()
      Returns the value of the factor record component.
      Returns:
      the value of the factor record component
    • jaggedness

      public T jaggedness()
      Returns the value of the jaggedness record component.
      Returns:
      the value of the jaggedness record component
    • depth

      public T depth()
      Returns the value of the depth record component.
      Returns:
      the value of the depth record component
    • slopedCheese

      public T slopedCheese()
      Returns the value of the slopedCheese record component.
      Returns:
      the value of the slopedCheese record component
    • preliminarySurfaceLevel

      public T preliminarySurfaceLevel()
      Returns the value of the preliminarySurfaceLevel record component.
      Returns:
      the value of the preliminarySurfaceLevel record component
    • chunkSurfaceLevel

      public T chunkSurfaceLevel()
      Returns the value of the chunkSurfaceLevel record component.
      Returns:
      the value of the chunkSurfaceLevel record component
    • finalDensity

      public T finalDensity()
      Returns the value of the finalDensity record component.
      Returns:
      the value of the finalDensity record component