Record Class NormalNoise.OctaveInfo
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.synth.NormalNoise.OctaveInfo
- Enclosing class:
NormalNoise
private static record NormalNoise.OctaveInfo(int octaveIndex, double frequency, double amplitude)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleThe field for theamplituderecord component.private final doubleThe field for thefrequencyrecord component.private final intThe field for theoctaveIndexrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateOctaveInfo(int octaveIndex, double frequency, double amplitude) Creates an instance of aOctaveInforecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubleReturns the value of theamplituderecord component.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thefrequencyrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theoctaveIndexrecord component.seed()final StringtoString()Returns a string representation of this record class.
-
Field Details
-
octaveIndex
private final int octaveIndexThe field for theoctaveIndexrecord component. -
frequency
private final double frequencyThe field for thefrequencyrecord component. -
amplitude
private final double amplitudeThe field for theamplituderecord component.
-
-
Constructor Details
-
OctaveInfo
private OctaveInfo(int octaveIndex, double frequency, double amplitude) Creates an instance of aOctaveInforecord class.- Parameters:
octaveIndex- the value for theoctaveIndexrecord componentfrequency- the value for thefrequencyrecord componentamplitude- the value for theamplituderecord component
-
-
Method Details
-
seed
-
absAmplitude
public double absAmplitude() -
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
octaveIndex
public int octaveIndex()Returns the value of theoctaveIndexrecord component.- Returns:
- the value of the
octaveIndexrecord component
-
frequency
public double frequency()Returns the value of thefrequencyrecord component.- Returns:
- the value of the
frequencyrecord component
-
amplitude
public double amplitude()Returns the value of theamplituderecord component.- Returns:
- the value of the
amplituderecord component
-