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
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<NoiseSamplingSettings>
private static final com.mojang.serialization.Codec<Double>
private final double
The field for thexzFactor
record component.private final double
The field for thexzScale
record component.private final double
The field for theyFactor
record component.private final double
The field for theyScale
record component. -
Constructor Summary
ConstructorDescriptionNoiseSamplingSettings
(double xzScale, double yScale, double xzFactor, double yFactor) Creates an instance of aNoiseSamplingSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.double
xzFactor()
Returns the value of thexzFactor
record component.double
xzScale()
Returns the value of thexzScale
record component.double
yFactor()
Returns the value of theyFactor
record component.double
yScale()
Returns the value of theyScale
record component.
-
Field Details
-
xzScale
private final double xzScaleThe field for thexzScale
record component. -
yScale
private final double yScaleThe field for theyScale
record component. -
xzFactor
private final double xzFactorThe field for thexzFactor
record component. -
yFactor
private final double yFactorThe field for theyFactor
record component. -
SCALE_RANGE
-
CODEC
-
-
Constructor Details
-
NoiseSamplingSettings
public NoiseSamplingSettings(double xzScale, double yScale, double xzFactor, double yFactor) Creates an instance of aNoiseSamplingSettings
record class.- Parameters:
xzScale
- the value for thexzScale
record componentyScale
- the value for theyScale
record componentxzFactor
- the value for thexzFactor
record componentyFactor
- the value for theyFactor
record 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 thexzScale
record component.- Returns:
- the value of the
xzScale
record component
-
yScale
public double yScale()Returns the value of theyScale
record component.- Returns:
- the value of the
yScale
record component
-
xzFactor
public double xzFactor()Returns the value of thexzFactor
record component.- Returns:
- the value of the
xzFactor
record component
-
yFactor
public double yFactor()Returns the value of theyFactor
record component.- Returns:
- the value of the
yFactor
record component
-