Package net.minecraft.util.math.noise
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 Summary
Modifier and TypeFieldDescriptionprivate final DoubleList
The field for theamplitudes
record component.static final com.mojang.serialization.Codec<DoublePerlinNoiseSampler.NoiseParameters>
private final int
The field for thefirstOctave
record component.static final com.mojang.serialization.Codec<RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters>>
-
Constructor Summary
ConstructorDescriptionNoiseParameters
(int firstOctave, double firstAmplitude, double[] amplitudes) NoiseParameters
(int int2, DoubleList doubleList) NoiseParameters
(int firstOctave, List<Double> amplitudes) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theamplitudes
record component.final boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of thefirstOctave
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
firstOctave
private final int firstOctaveThe field for thefirstOctave
record component. -
amplitudes
The field for theamplitudes
record component. -
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
- 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
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
firstOctave
public int firstOctave()Returns the value of thefirstOctave
record component.- Returns:
- the value of the
firstOctave
record component
-
amplitudes
Returns the value of theamplitudes
record component.- Returns:
- the value of the
amplitudes
record component
-