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
FieldsModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.doubles.DoubleListThe field for theamplitudesrecord component.static final com.mojang.serialization.Codec<Holder<NormalNoise.NoiseParameters>> static final com.mojang.serialization.Codec<NormalNoise.NoiseParameters> private final intThe field for thefirstOctaverecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNoiseParameters(int firstOctave, double firstAmplitude, double... amplitudes) NoiseParameters(int firstOctave, it.unimi.dsi.fastutil.doubles.DoubleList amplitudes) Creates an instance of aNoiseParametersrecord class.NoiseParameters(int firstOctave, List<Double> amplitudes) -
Method Summary
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.doubles.DoubleListReturns the value of theamplitudesrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefirstOctaverecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
firstOctave
private final int firstOctaveThe field for thefirstOctaverecord component. -
amplitudes
private final it.unimi.dsi.fastutil.doubles.DoubleList amplitudesThe field for theamplitudesrecord component. -
DIRECT_CODEC
-
CODEC
-
-
Constructor Details
-
NoiseParameters
-
NoiseParameters
public NoiseParameters(int firstOctave, double firstAmplitude, double... amplitudes) -
NoiseParameters
public NoiseParameters(int firstOctave, it.unimi.dsi.fastutil.doubles.DoubleList amplitudes) Creates an instance of aNoiseParametersrecord class.- Parameters:
firstOctave- the value for thefirstOctaverecord componentamplitudes- the value for theamplitudesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
firstOctave
public int firstOctave()Returns the value of thefirstOctaverecord component.- Returns:
- the value of the
firstOctaverecord component
-
amplitudes
public it.unimi.dsi.fastutil.doubles.DoubleList amplitudes()Returns the value of theamplitudesrecord component.- Returns:
- the value of the
amplitudesrecord component
-