Record Class NormalNoise.NoiseParameters
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.synth.NormalNoise.NoiseParameters
- Enclosing class:
NormalNoise
public static record NormalNoise.NoiseParameters(int firstOctave, it.unimi.dsi.fastutil.doubles.DoubleList amplitudes)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.doubles.DoubleList
The field for theamplitudes
record component.static final com.mojang.serialization.Codec
<Holder<NormalNoise.NoiseParameters>> static final com.mojang.serialization.Codec
<NormalNoise.NoiseParameters> private final int
The field for thefirstOctave
record component. -
Constructor Summary
ConstructorDescriptionNoiseParameters
(int p_192857_, double p_192858_, double... p_192859_) NoiseParameters
(int firstOctave, it.unimi.dsi.fastutil.doubles.DoubleList amplitudes) Creates an instance of aNoiseParameters
record class.NoiseParameters
(int p_192861_, List<Double> p_192862_) -
Method Summary
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.doubles.DoubleList
Returns 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
private final it.unimi.dsi.fastutil.doubles.DoubleList amplitudesThe field for theamplitudes
record component. -
DIRECT_CODEC
-
CODEC
-
-
Constructor Details
-
NoiseParameters
-
NoiseParameters
public NoiseParameters(int p_192857_, double p_192858_, double... p_192859_) -
NoiseParameters
public NoiseParameters(int firstOctave, it.unimi.dsi.fastutil.doubles.DoubleList amplitudes) Creates an instance of aNoiseParameters
record class.- Parameters:
firstOctave
- the value for thefirstOctave
record componentamplitudes
- the value for theamplitudes
record component
-
-
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
public it.unimi.dsi.fastutil.doubles.DoubleList amplitudes()Returns the value of theamplitudes
record component.- Returns:
- the value of the
amplitudes
record component
-