Record Class CanyonShapeConfiguration
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.carver.CanyonShapeConfiguration
- All Implemented Interfaces:
Wrapper
@NullMarked
@AsOf("2.3.0")
public record CanyonShapeConfiguration(FloatProvider distanceFactor, FloatProvider thickness, int widthSmoothness, FloatProvider horizontalRadiusFactor, float verticalRadiusDefaultFactor, float verticalRadiusCenterFactor)
extends Record
implements Wrapper
Wraps Minecraft's CanyonCarverConfiguration.CanyonShapeConfiguration. The
shape parameters that drive a canyon's length, thickness, and radius profile.
- Since:
- 2.3.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder for creating a CanyonShapeConfiguration.Nested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Constructor Summary
ConstructorsConstructorDescriptionCanyonShapeConfiguration(FloatProvider distanceFactor, FloatProvider thickness, int widthSmoothness, FloatProvider horizontalRadiusFactor, float verticalRadiusDefaultFactor, float verticalRadiusCenterFactor) Creates an instance of aCanyonShapeConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new Builder for CanyonShapeConfiguration.Returns 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.Converts this CanyonShapeConfiguration to an NMS CanyonShapeConfiguration.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.
-
Constructor Details
-
CanyonShapeConfiguration
@AsOf("2.3.0") public CanyonShapeConfiguration(FloatProvider distanceFactor, FloatProvider thickness, int widthSmoothness, FloatProvider horizontalRadiusFactor, float verticalRadiusDefaultFactor, float verticalRadiusCenterFactor) Creates an instance of aCanyonShapeConfigurationrecord 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 component
-
-
Method Details
-
builder
Creates a new Builder for CanyonShapeConfiguration.- Returns:
- a new Builder for CanyonShapeConfiguration
- Since:
- 2.3.0
-
toMinecraft
Converts this CanyonShapeConfiguration to an NMS CanyonShapeConfiguration.- Specified by:
toMinecraftin interfaceWrapper- Returns:
- the NMS CanyonShapeConfiguration
- Since:
- 2.3.0
-
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
-