Record Class NoiseRouter

java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.NoiseRouter

public record NoiseRouter(DensityFunction temperature, DensityFunction vegetation, DensityFunction continents, DensityFunction erosion, DensityFunction depth, DensityFunction ridges, DensityFunction chunkSurfaceLevel, DensityFunction finalDensity) extends Record
  • Field Details

    • temperature

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

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

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

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

      private final DensityFunction depth
      The field for the depth record component.
    • ridges

      private final DensityFunction ridges
      The field for the ridges record component.
    • chunkSurfaceLevel

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

      private final DensityFunction finalDensity
      The field for the finalDensity record component.
    • CODEC

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

    • NoiseRouter

      public NoiseRouter(DensityFunction temperature, DensityFunction vegetation, DensityFunction continents, DensityFunction erosion, DensityFunction depth, DensityFunction ridges, DensityFunction chunkSurfaceLevel, DensityFunction finalDensity)
      Creates an instance of a NoiseRouter 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
      depth - the value for the depth record component
      ridges - the value for the ridges record component
      chunkSurfaceLevel - the value for the chunkSurfaceLevel record component
      finalDensity - the value for the finalDensity record component
  • Method Details

    • createClimateSampler

      public Climate.Sampler createClimateSampler(DensitySamplerSet densitySamplers)
    • 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 DensityFunction temperature()
      Returns the value of the temperature record component.
      Returns:
      the value of the temperature record component
    • vegetation

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

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

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

      public DensityFunction depth()
      Returns the value of the depth record component.
      Returns:
      the value of the depth record component
    • ridges

      public DensityFunction ridges()
      Returns the value of the ridges record component.
      Returns:
      the value of the ridges record component
    • chunkSurfaceLevel

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

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