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 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 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 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
- 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
-
-
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
-