Record Class NoiseStack.Layer
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.synth.NoiseStack.Layer
- Enclosing class:
NoiseStack
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns 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.noise()Returns the value of thenoiserecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
noise
The field for thenoiserecord component. -
frequency
private final double frequencyThe field for thefrequencyrecord component. -
amplitude
private final float amplitudeThe field for theamplituderecord component.
-
-
Constructor Details
-
Layer
Creates an instance of aLayerrecord class.- Parameters:
noise- the value for thenoiserecord componentfrequency- the value for thefrequencyrecord componentamplitude- the value for theamplituderecord 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. -
noise
Returns the value of thenoiserecord component.- Returns:
- the value of the
noiserecord component
-
frequency
public double frequency()Returns the value of thefrequencyrecord component.- Returns:
- the value of the
frequencyrecord component
-
amplitude
public float amplitude()Returns the value of theamplituderecord component.- Returns:
- the value of the
amplituderecord component
-