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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionNoiseParameters(int p_192857_, double p_192858_, double... p_192859_) NoiseParameters(int firstOctave, it.unimi.dsi.fastutil.doubles.DoubleList amplitudes) Creates an instance of aNoiseParametersrecord class.NoiseParameters(int p_192861_, List<Double> p_192862_) 
- 
Method SummaryModifier 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- 
firstOctaveprivate final int firstOctaveThe field for thefirstOctaverecord component.
- 
amplitudesprivate final it.unimi.dsi.fastutil.doubles.DoubleList amplitudesThe field for theamplitudesrecord component.
- 
DIRECT_CODEC
- 
CODEC
 
- 
- 
Constructor Details- 
NoiseParameters
- 
NoiseParameterspublic NoiseParameters(int p_192857_, double p_192858_, double... p_192859_) 
- 
NoiseParameterspublic NoiseParameters(int firstOctave, it.unimi.dsi.fastutil.doubles.DoubleList amplitudes) Creates an instance of aNoiseParametersrecord class.- Parameters:
- firstOctave- the value for the- firstOctaverecord component
- amplitudes- the value for the- amplitudesrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
firstOctavepublic int firstOctave()Returns the value of thefirstOctaverecord component.- Returns:
- the value of the firstOctaverecord component
 
- 
amplitudespublic it.unimi.dsi.fastutil.doubles.DoubleList amplitudes()Returns the value of theamplitudesrecord component.- Returns:
- the value of the amplitudesrecord component
 
 
-