Package net.minecraft.world.gen.chunk
Record Class NoiseSamplingConfig
java.lang.Object
java.lang.Record
net.minecraft.world.gen.chunk.NoiseSamplingConfig
- Record Components:
xzScale
-yScale
-xzFactor
-yFactor
-
public record NoiseSamplingConfig(double xzScale, double yScale, double xzFactor, double yFactor)
extends Record
- Mappings:
Namespace Name official cuf
intermediary net/minecraft/class_5308
named net/minecraft/world/gen/chunk/NoiseSamplingConfig
official b
intermediary comp_503
named xzScale
official c
intermediary comp_504
named yScale
official d
intermediary comp_505
named xzFactor
official e
intermediary comp_506
named yFactor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<NoiseSamplingConfig>
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
ConstructorDescriptionNoiseSamplingConfig
(double xzScale, double yScale, double xzFactor, double yFactor) Creates an instance of aNoiseSamplingConfig
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. -
CODEC_RANGE
- Mappings:
Namespace Name Mixin selector official f
Lcuf;f:Lcom/mojang/serialization/Codec;
intermediary field_25188
Lnet/minecraft/class_5308;field_25188:Lcom/mojang/serialization/Codec;
named CODEC_RANGE
Lnet/minecraft/world/gen/chunk/NoiseSamplingConfig;CODEC_RANGE:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lcuf;a:Lcom/mojang/serialization/Codec;
intermediary field_24799
Lnet/minecraft/class_5308;field_24799:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/world/gen/chunk/NoiseSamplingConfig;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
NoiseSamplingConfig
public NoiseSamplingConfig(double xzScale, double yScale, double xzFactor, double yFactor) Creates an instance of aNoiseSamplingConfig
record class.
-
-
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
-