Record Class NormalNoise.Parameters
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.synth.NormalNoise.Parameters
- Enclosing class:
NormalNoise
private static record NormalNoise.Parameters(double baseAmplitude, int baseOctave, int octaveCount, NormalNoise.Normalization normalize, it.unimi.dsi.fastutil.doubles.DoubleList amplitudeModifiers)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<it.unimi.dsi.fastutil.doubles.DoubleList> private final it.unimi.dsi.fastutil.doubles.DoubleListThe field for theamplitudeModifiersrecord component.private final doubleThe field for thebaseAmplituderecord component.private final intThe field for thebaseOctaverecord component.static final com.mojang.serialization.Codec<NormalNoise.Parameters> private final NormalNoise.NormalizationThe field for thenormalizerecord component.private final intThe field for theoctaveCountrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateParameters(double baseAmplitude, int baseOctave, int octaveCount, NormalNoise.Normalization normalize, it.unimi.dsi.fastutil.doubles.DoubleList amplitudeModifiers) Creates an instance of aParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.doubles.DoubleListReturns the value of theamplitudeModifiersrecord component.doubleReturns the value of thebaseAmplituderecord component.intReturns the value of thebaseOctaverecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenormalizerecord component.intReturns the value of theoctaveCountrecord component.final StringtoString()Returns a string representation of this record class.private static com.mojang.serialization.DataResult<NormalNoise.Parameters> validate(NormalNoise.Parameters parameters)
-
Field Details
-
baseAmplitude
private final double baseAmplitudeThe field for thebaseAmplituderecord component. -
baseOctave
private final int baseOctaveThe field for thebaseOctaverecord component. -
octaveCount
private final int octaveCountThe field for theoctaveCountrecord component. -
normalize
The field for thenormalizerecord component. -
amplitudeModifiers
private final it.unimi.dsi.fastutil.doubles.DoubleList amplitudeModifiersThe field for theamplitudeModifiersrecord component. -
AMPLITUDE_MODIFIERS_CODEC
private static final com.mojang.serialization.Codec<it.unimi.dsi.fastutil.doubles.DoubleList> AMPLITUDE_MODIFIERS_CODEC -
CODEC
-
-
Constructor Details
-
Parameters
private Parameters(double baseAmplitude, int baseOctave, int octaveCount, NormalNoise.Normalization normalize, it.unimi.dsi.fastutil.doubles.DoubleList amplitudeModifiers) Creates an instance of aParametersrecord class.- Parameters:
baseAmplitude- the value for thebaseAmplituderecord componentbaseOctave- the value for thebaseOctaverecord componentoctaveCount- the value for theoctaveCountrecord componentnormalize- the value for thenormalizerecord componentamplitudeModifiers- the value for theamplitudeModifiersrecord component
-
-
Method Details
-
validate
private static com.mojang.serialization.DataResult<NormalNoise.Parameters> validate(NormalNoise.Parameters parameters) -
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. -
baseAmplitude
public double baseAmplitude()Returns the value of thebaseAmplituderecord component.- Returns:
- the value of the
baseAmplituderecord component
-
baseOctave
public int baseOctave()Returns the value of thebaseOctaverecord component.- Returns:
- the value of the
baseOctaverecord component
-
octaveCount
public int octaveCount()Returns the value of theoctaveCountrecord component.- Returns:
- the value of the
octaveCountrecord component
-
normalize
Returns the value of thenormalizerecord component.- Returns:
- the value of the
normalizerecord component
-
amplitudeModifiers
public it.unimi.dsi.fastutil.doubles.DoubleList amplitudeModifiers()Returns the value of theamplitudeModifiersrecord component.- Returns:
- the value of the
amplitudeModifiersrecord component
-