Interface ReplaceSphereConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
A replacement sphere configuration.
- Since:
- 3.0.0
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.static ReplaceSphereConfigurationof(BlockData targetState, BlockData replaceState, IntProvider radius) Creates a new replace sphere configuration.radius()The radius of the sphere.The block state the target is replaced with.The block state that is replaced within the sphere.Converts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
targetState
-
replaceState
-
radius
The radius of the sphere. Value between 0 and 12.- Returns:
- the radius
- Since:
- 3.0.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder with the same values as this object
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static ReplaceSphereConfiguration of(BlockData targetState, BlockData replaceState, IntProvider radius) Creates a new replace sphere configuration.- Parameters:
targetState- the block state that is replaced within the spherereplaceState- the block state the target is replaced withradius- the radius of the sphere- Returns:
- a new replace sphere configuration
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-