Record Class CanyonWorldCarver.Shape
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.carver.CanyonWorldCarver.Shape
- Enclosing class:
CanyonWorldCarver
public static record CanyonWorldCarver.Shape(FloatProvider distanceFactor, FloatProvider thickness, int widthSmoothness, FloatProvider horizontalRadiusFactor, float verticalRadiusDefaultFactor, float verticalRadiusCenterFactor, FloatProvider yScale)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CanyonWorldCarver.Shape> private final FloatProviderThe field for thedistanceFactorrecord component.private final FloatProviderThe field for thehorizontalRadiusFactorrecord component.private final FloatProviderThe field for thethicknessrecord component.private final floatThe field for theverticalRadiusCenterFactorrecord component.private final floatThe field for theverticalRadiusDefaultFactorrecord component.private final intThe field for thewidthSmoothnessrecord component.private final FloatProviderThe field for theyScalerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionShape(FloatProvider distanceFactor, FloatProvider thickness, int widthSmoothness, FloatProvider horizontalRadiusFactor, float verticalRadiusDefaultFactor, float verticalRadiusCenterFactor, FloatProvider yScale) Creates an instance of aShaperecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedistanceFactorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehorizontalRadiusFactorrecord component.Returns the value of thethicknessrecord component.final StringtoString()Returns a string representation of this record class.floatReturns the value of theverticalRadiusCenterFactorrecord component.floatReturns the value of theverticalRadiusDefaultFactorrecord component.intReturns the value of thewidthSmoothnessrecord component.yScale()Returns the value of theyScalerecord component.
-
Field Details
-
distanceFactor
The field for thedistanceFactorrecord component. -
thickness
The field for thethicknessrecord component. -
widthSmoothness
private final int widthSmoothnessThe field for thewidthSmoothnessrecord component. -
horizontalRadiusFactor
The field for thehorizontalRadiusFactorrecord component. -
verticalRadiusDefaultFactor
private final float verticalRadiusDefaultFactorThe field for theverticalRadiusDefaultFactorrecord component. -
verticalRadiusCenterFactor
private final float verticalRadiusCenterFactorThe field for theverticalRadiusCenterFactorrecord component. -
yScale
The field for theyScalerecord component. -
CODEC
-
-
Constructor Details
-
Shape
public Shape(FloatProvider distanceFactor, FloatProvider thickness, int widthSmoothness, FloatProvider horizontalRadiusFactor, float verticalRadiusDefaultFactor, float verticalRadiusCenterFactor, FloatProvider yScale) Creates an instance of aShaperecord class.- Parameters:
distanceFactor- the value for thedistanceFactorrecord componentthickness- the value for thethicknessrecord componentwidthSmoothness- the value for thewidthSmoothnessrecord componenthorizontalRadiusFactor- the value for thehorizontalRadiusFactorrecord componentverticalRadiusDefaultFactor- the value for theverticalRadiusDefaultFactorrecord componentverticalRadiusCenterFactor- the value for theverticalRadiusCenterFactorrecord componentyScale- the value for theyScalerecord 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. -
distanceFactor
Returns the value of thedistanceFactorrecord component.- Returns:
- the value of the
distanceFactorrecord component
-
thickness
Returns the value of thethicknessrecord component.- Returns:
- the value of the
thicknessrecord component
-
widthSmoothness
public int widthSmoothness()Returns the value of thewidthSmoothnessrecord component.- Returns:
- the value of the
widthSmoothnessrecord component
-
horizontalRadiusFactor
Returns the value of thehorizontalRadiusFactorrecord component.- Returns:
- the value of the
horizontalRadiusFactorrecord component
-
verticalRadiusDefaultFactor
public float verticalRadiusDefaultFactor()Returns the value of theverticalRadiusDefaultFactorrecord component.- Returns:
- the value of the
verticalRadiusDefaultFactorrecord component
-
verticalRadiusCenterFactor
public float verticalRadiusCenterFactor()Returns the value of theverticalRadiusCenterFactorrecord component.- Returns:
- the value of the
verticalRadiusCenterFactorrecord component
-
yScale
Returns the value of theyScalerecord component.- Returns:
- the value of the
yScalerecord component
-