Interface CanyonWorldCarver.Shape
- All Superinterfaces:
Wrapper
- Enclosing interface:
CanyonWorldCarver
The settings used to shape a
CanyonWorldCarver.- Since:
- 4.0.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new canyon shape builder.static CanyonWorldCarver.ShapeReads a Minecraft canyon shape.The factor controlling the canyon's distance-based horizontal shape.The factor applied to the canyon's horizontal radius.static CanyonWorldCarver.Shapeof(FloatProvider distanceFactor, FloatProvider thickness, int widthSmoothness, FloatProvider horizontalRadiusFactor, float verticalRadiusDefaultFactor, float verticalRadiusCenterFactor, FloatProvider yScale) Creates a canyon shape.The base thickness of the canyon.default CanyonWorldCarver.Shape.BuilderConverts this canyon shape back to a builder.floatThe factor applied to the canyon's vertical radius near its center.floatThe default factor applied to the canyon's vertical radius.intThe number of steps over which canyon width changes are smoothed.yScale()The vertical scale applied while shaping the canyon.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
distanceFactor
The factor controlling the canyon's distance-based horizontal shape.- Returns:
- the distance factor
- Since:
- 4.0.0
-
thickness
The base thickness of the canyon.- Returns:
- the canyon thickness
- Since:
- 4.0.0
-
widthSmoothness
The number of steps over which canyon width changes are smoothed.- Returns:
- the width smoothness
- Since:
- 4.0.0
-
horizontalRadiusFactor
The factor applied to the canyon's horizontal radius.- Returns:
- the horizontal radius factor
- Since:
- 4.0.0
-
verticalRadiusDefaultFactor
The default factor applied to the canyon's vertical radius.- Returns:
- the default vertical radius factor
- Since:
- 4.0.0
-
verticalRadiusCenterFactor
The factor applied to the canyon's vertical radius near its center.- Returns:
- the center vertical radius factor
- Since:
- 4.0.0
-
yScale
The vertical scale applied while shaping the canyon.- Returns:
- the canyon's vertical scale
- Since:
- 4.0.0
-
toBuilder
Converts this canyon shape back to a builder.- Returns:
- a builder containing this shape's values
- Since:
- 4.0.0
-
of
@AsOf("4.0.0") static CanyonWorldCarver.Shape of(FloatProvider distanceFactor, FloatProvider thickness, int widthSmoothness, FloatProvider horizontalRadiusFactor, float verticalRadiusDefaultFactor, float verticalRadiusCenterFactor, FloatProvider yScale) Creates a canyon shape.- Parameters:
distanceFactor- the distance-based horizontal shape factorthickness- the base canyon thicknesswidthSmoothness- the number of steps over which width changes are smoothedhorizontalRadiusFactor- the horizontal radius factorverticalRadiusDefaultFactor- the default vertical radius factorverticalRadiusCenterFactor- the center vertical radius factoryScale- the vertical scale applied while shaping the canyon- Returns:
- a new canyon shape
- Since:
- 4.0.0
-
builder
Creates a new canyon shape builder.- Returns:
- a new builder
- Since:
- 4.0.0
-
decode
Reads a Minecraft canyon shape.- Parameters:
minecraftShape- the Minecraft canyon shape to read- Returns:
- the decoded canyon shape
- Since:
- 4.0.0
-