Record Class NoiseSamplingSettings
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.NoiseSamplingSettings
public record NoiseSamplingSettings(double xzScale, double yScale, double xzFactor, double yFactor)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<NoiseSamplingSettings>private static final com.mojang.serialization.Codec<Double>private final doubleThe field for thexzFactorrecord component.private final doubleThe field for thexzScalerecord component.private final doubleThe field for theyFactorrecord component.private final doubleThe field for theyScalerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNoiseSamplingSettings(double xzScale, double yScale, double xzFactor, double yFactor) Creates an instance of aNoiseSamplingSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.doublexzFactor()Returns the value of thexzFactorrecord component.doublexzScale()Returns the value of thexzScalerecord component.doubleyFactor()Returns the value of theyFactorrecord component.doubleyScale()Returns the value of theyScalerecord component.
-
Field Details
-
xzScale
private final double xzScaleThe field for thexzScalerecord component. -
yScale
private final double yScaleThe field for theyScalerecord component. -
xzFactor
private final double xzFactorThe field for thexzFactorrecord component. -
yFactor
private final double yFactorThe field for theyFactorrecord component. -
SCALE_RANGE
-
CODEC
-
-
Constructor Details
-
NoiseSamplingSettings
public NoiseSamplingSettings(double xzScale, double yScale, double xzFactor, double yFactor) Creates an instance of aNoiseSamplingSettingsrecord class.- Parameters:
xzScale- the value for thexzScalerecord componentyScale- the value for theyScalerecord componentxzFactor- the value for thexzFactorrecord componentyFactor- the value for theyFactorrecord component
-
-
Method Details
-
toString
Returns 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. -
hashCode
public 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. -
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 '=='. -
xzScale
public double xzScale()Returns the value of thexzScalerecord component.- Returns:
- the value of the
xzScalerecord component
-
yScale
public double yScale()Returns the value of theyScalerecord component.- Returns:
- the value of the
yScalerecord component
-
xzFactor
public double xzFactor()Returns the value of thexzFactorrecord component.- Returns:
- the value of the
xzFactorrecord component
-
yFactor
public double yFactor()Returns the value of theyFactorrecord component.- Returns:
- the value of the
yFactorrecord component
-