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 cufintermediary net/minecraft/class_5308named net/minecraft/world/gen/chunk/NoiseSamplingConfigofficial bintermediary comp_503named xzScaleofficial cintermediary comp_504named yScaleofficial dintermediary comp_505named xzFactorofficial eintermediary comp_506named yFactor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<NoiseSamplingConfig>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
ConstructorsConstructorDescriptionNoiseSamplingConfig(double xzScale, double yScale, double xzFactor, double yFactor) Creates an instance of aNoiseSamplingConfigrecord 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. -
CODEC_RANGE
- Mappings:
Namespace Name Mixin selector official fLcuf;f:Lcom/mojang/serialization/Codec;intermediary field_25188Lnet/minecraft/class_5308;field_25188:Lcom/mojang/serialization/Codec;named CODEC_RANGELnet/minecraft/world/gen/chunk/NoiseSamplingConfig;CODEC_RANGE:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLcuf;a:Lcom/mojang/serialization/Codec;intermediary field_24799Lnet/minecraft/class_5308;field_24799:Lcom/mojang/serialization/Codec;named CODECLnet/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 aNoiseSamplingConfigrecord 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 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
-