Record Class NormalNoise.Parameters

java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.synth.NormalNoise.Parameters
Enclosing class:
NormalNoise

private static record NormalNoise.Parameters(double baseAmplitude, int baseOctave, int octaveCount, NormalNoise.Normalization normalize, it.unimi.dsi.fastutil.doubles.DoubleList amplitudeModifiers) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final com.mojang.serialization.Codec<it.unimi.dsi.fastutil.doubles.DoubleList>
     
    private final it.unimi.dsi.fastutil.doubles.DoubleList
    The field for the amplitudeModifiers record component.
    private final double
    The field for the baseAmplitude record component.
    private final int
    The field for the baseOctave record component.
    static final com.mojang.serialization.Codec<NormalNoise.Parameters>
     
    The field for the normalize record component.
    private final int
    The field for the octaveCount record component.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Parameters(double baseAmplitude, int baseOctave, int octaveCount, NormalNoise.Normalization normalize, it.unimi.dsi.fastutil.doubles.DoubleList amplitudeModifiers)
    Creates an instance of a Parameters record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    it.unimi.dsi.fastutil.doubles.DoubleList
    Returns the value of the amplitudeModifiers record component.
    double
    Returns the value of the baseAmplitude record component.
    int
    Returns the value of the baseOctave record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the normalize record component.
    int
    Returns the value of the octaveCount record component.
    final String
    Returns a string representation of this record class.
    private static com.mojang.serialization.DataResult<NormalNoise.Parameters>
     

    Methods inherited from class Object

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

    • baseAmplitude

      private final double baseAmplitude
      The field for the baseAmplitude record component.
    • baseOctave

      private final int baseOctave
      The field for the baseOctave record component.
    • octaveCount

      private final int octaveCount
      The field for the octaveCount record component.
    • normalize

      private final NormalNoise.Normalization normalize
      The field for the normalize record component.
    • amplitudeModifiers

      private final it.unimi.dsi.fastutil.doubles.DoubleList amplitudeModifiers
      The field for the amplitudeModifiers record component.
    • AMPLITUDE_MODIFIERS_CODEC

      private static final com.mojang.serialization.Codec<it.unimi.dsi.fastutil.doubles.DoubleList> AMPLITUDE_MODIFIERS_CODEC
    • CODEC

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

    • Parameters

      private Parameters(double baseAmplitude, int baseOctave, int octaveCount, NormalNoise.Normalization normalize, it.unimi.dsi.fastutil.doubles.DoubleList amplitudeModifiers)
      Creates an instance of a Parameters record class.
      Parameters:
      baseAmplitude - the value for the baseAmplitude record component
      baseOctave - the value for the baseOctave record component
      octaveCount - the value for the octaveCount record component
      normalize - the value for the normalize record component
      amplitudeModifiers - the value for the amplitudeModifiers record component
  • Method Details

    • validate

      private static com.mojang.serialization.DataResult<NormalNoise.Parameters> validate(NormalNoise.Parameters parameters)
    • 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 the compare method from their corresponding wrapper classes.
      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.
    • baseAmplitude

      public double baseAmplitude()
      Returns the value of the baseAmplitude record component.
      Returns:
      the value of the baseAmplitude record component
    • baseOctave

      public int baseOctave()
      Returns the value of the baseOctave record component.
      Returns:
      the value of the baseOctave record component
    • octaveCount

      public int octaveCount()
      Returns the value of the octaveCount record component.
      Returns:
      the value of the octaveCount record component
    • normalize

      public NormalNoise.Normalization normalize()
      Returns the value of the normalize record component.
      Returns:
      the value of the normalize record component
    • amplitudeModifiers

      public it.unimi.dsi.fastutil.doubles.DoubleList amplitudeModifiers()
      Returns the value of the amplitudeModifiers record component.
      Returns:
      the value of the amplitudeModifiers record component