Record Class NoiseSettings

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

public record NoiseSettings(int minY, int height, NoiseSamplingSettings noiseSamplingSettings, NoiseSlider topSlideSettings, NoiseSlider bottomSlideSettings, int noiseSizeHorizontal, int noiseSizeVertical, TerrainShaper terrainShaper) extends Record
  • Field Details

    • minY

      private final int minY
      The field for the minY record component.
    • height

      private final int height
      The field for the height record component.
    • noiseSamplingSettings

      private final NoiseSamplingSettings noiseSamplingSettings
      The field for the noiseSamplingSettings record component.
    • topSlideSettings

      private final NoiseSlider topSlideSettings
      The field for the topSlideSettings record component.
    • bottomSlideSettings

      private final NoiseSlider bottomSlideSettings
      The field for the bottomSlideSettings record component.
    • noiseSizeHorizontal

      private final int noiseSizeHorizontal
      The field for the noiseSizeHorizontal record component.
    • noiseSizeVertical

      private final int noiseSizeVertical
      The field for the noiseSizeVertical record component.
    • terrainShaper

      private final TerrainShaper terrainShaper
      The field for the terrainShaper record component.
    • CODEC

      public static final com.mojang.serialization.Codec<NoiseSettings> CODEC
    • NETHER_NOISE_SETTINGS

      static final NoiseSettings NETHER_NOISE_SETTINGS
    • END_NOISE_SETTINGS

      static final NoiseSettings END_NOISE_SETTINGS
    • CAVES_NOISE_SETTINGS

      static final NoiseSettings CAVES_NOISE_SETTINGS
    • FLOATING_ISLANDS_NOISE_SETTINGS

      static final NoiseSettings FLOATING_ISLANDS_NOISE_SETTINGS
  • Constructor Details

    • NoiseSettings

      public NoiseSettings(int minY, int height, NoiseSamplingSettings noiseSamplingSettings, NoiseSlider topSlideSettings, NoiseSlider bottomSlideSettings, int noiseSizeHorizontal, int noiseSizeVertical, TerrainShaper terrainShaper)
      Creates an instance of a NoiseSettings record class.
      Parameters:
      minY - the value for the minY record component
      height - the value for the height record component
      noiseSamplingSettings - the value for the noiseSamplingSettings record component
      topSlideSettings - the value for the topSlideSettings record component
      bottomSlideSettings - the value for the bottomSlideSettings record component
      noiseSizeHorizontal - the value for the noiseSizeHorizontal record component
      noiseSizeVertical - the value for the noiseSizeVertical record component
      terrainShaper - the value for the terrainShaper record component
  • Method Details

    • guardY

      private static com.mojang.serialization.DataResult<NoiseSettings> guardY(NoiseSettings p_158721_)
    • create

      public static NoiseSettings create(int p_212299_, int p_212300_, NoiseSamplingSettings p_212301_, NoiseSlider p_212302_, NoiseSlider p_212303_, int p_212304_, int p_212305_, TerrainShaper p_212306_)
    • overworldNoiseSettings

      static NoiseSettings overworldNoiseSettings(boolean p_212308_)
    • getCellHeight

      public int getCellHeight()
    • getCellWidth

      public int getCellWidth()
    • getCellCountY

      public int getCellCountY()
    • getMinCellY

      public int getMinCellY()
    • 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.
    • minY

      public int minY()
      Returns the value of the minY record component.
      Returns:
      the value of the minY record component
    • height

      public int height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • noiseSamplingSettings

      public NoiseSamplingSettings noiseSamplingSettings()
      Returns the value of the noiseSamplingSettings record component.
      Returns:
      the value of the noiseSamplingSettings record component
    • topSlideSettings

      public NoiseSlider topSlideSettings()
      Returns the value of the topSlideSettings record component.
      Returns:
      the value of the topSlideSettings record component
    • bottomSlideSettings

      public NoiseSlider bottomSlideSettings()
      Returns the value of the bottomSlideSettings record component.
      Returns:
      the value of the bottomSlideSettings record component
    • noiseSizeHorizontal

      public int noiseSizeHorizontal()
      Returns the value of the noiseSizeHorizontal record component.
      Returns:
      the value of the noiseSizeHorizontal record component
    • noiseSizeVertical

      public int noiseSizeVertical()
      Returns the value of the noiseSizeVertical record component.
      Returns:
      the value of the noiseSizeVertical record component
    • terrainShaper

      public TerrainShaper terrainShaper()
      Returns the value of the terrainShaper record component.
      Returns:
      the value of the terrainShaper record component