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
official dso$a
intermediary net/minecraft/class_5216$class_5487
named net/minecraft/util/math/noise/DoublePerlinNoiseSampler$NoiseParameters
official c
intermediary comp_516
named firstOctave
official d
intermediary comp_517
named amplitudes
  • 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
      official a Ldso$a;a:Lcom/mojang/serialization/Codec;
      intermediary field_35424 Lnet/minecraft/class_5216$class_5487;field_35424:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler$NoiseParameters;CODEC: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
      official b Ldso$a;b:Lcom/mojang/serialization/Codec;
      intermediary field_26438 Lnet/minecraft/class_5216$class_5487;field_26438:Lcom/mojang/serialization/Codec;
      named REGISTRY_ENTRY_CODEC Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler$NoiseParameters;REGISTRY_ENTRY_CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • NoiseParameters

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

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