Record Class DoublePerlinNoiseSampler.NoiseParameters

java.lang.Object
java.lang.Record
net.minecraft.util.math.noise.DoublePerlinNoiseSampler.NoiseParameters
Record Components:
firstOctave -
amplitudes -
Enclosing class:
DoublePerlinNoiseSampler

public static record DoublePerlinNoiseSampler.NoiseParameters(int firstOctave, DoubleList amplitudes) extends Record
Mappings:
Namespace Name
named net/minecraft/util/math/noise/DoublePerlinNoiseSampler$NoiseParameters
intermediary net/minecraft/class_5216$class_5487
official esz$a
named firstOctave
intermediary comp_516
official c
named amplitudes
intermediary comp_517
official d
  • Field Details

    • firstOctave

      private final int firstOctave
      The field for the firstOctave record component.
    • amplitudes

      private final DoubleList amplitudes
      The field for the amplitudes record component.
    • CODEC

      public static final com.mojang.serialization.Codec<DoublePerlinNoiseSampler.NoiseParameters> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler$NoiseParameters;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_35424 Lnet/minecraft/class_5216$class_5487;field_35424:Lcom/mojang/serialization/Codec;
      official a Lesz$a;a:Lcom/mojang/serialization/Codec;
    • REGISTRY_ENTRY_CODEC

      public static final com.mojang.serialization.Codec<RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters>> REGISTRY_ENTRY_CODEC
      Mappings:
      Namespace Name Mixin selector
      named REGISTRY_ENTRY_CODEC Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler$NoiseParameters;REGISTRY_ENTRY_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_26438 Lnet/minecraft/class_5216$class_5487;field_26438:Lcom/mojang/serialization/Codec;
      official b Lesz$a;b:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • NoiseParameters

      public NoiseParameters(int firstOctave, List<Double> amplitudes)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler$NoiseParameters;<init>(ILjava/util/List;)V
      intermediary <init> Lnet/minecraft/class_5216$class_5487;<init>(ILjava/util/List;)V
      official <init> Lesz$a;<init>(ILjava/util/List;)V
    • NoiseParameters

      public NoiseParameters(int firstOctave, double firstAmplitude, double[] amplitudes)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler$NoiseParameters;<init>(ID[D)V
      intermediary <init> Lnet/minecraft/class_5216$class_5487;<init>(ID[D)V
      official <init> Lesz$a;<init>(ID[D)V
    • NoiseParameters

      public NoiseParameters(int int2, DoubleList doubleList)
  • Method Details

    • 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 object)
      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:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • firstOctave

      public int firstOctave()
      Returns the value of the firstOctave record component.
      Returns:
      the value of the firstOctave record component
    • amplitudes

      public DoubleList amplitudes()
      Returns the value of the amplitudes record component.
      Returns:
      the value of the amplitudes record component