Interface DiskConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
A feature consisting of a naturally generated roughly circular deposit of a soil-like block under or next to bodies of water.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionstatic DiskConfiguration.Builderbuilder()Creates a new builder.intHalf of the height of this disk.static DiskConfigurationof(BlockStateProvider stateProvider, BlockPredicate target, IntProvider radius, int halfHeight) Creates a new disk configuration.radius()The radius of this disk.The block state provider used for the blocks that make up the disk.target()The block predicate that must be passed for a block to be replaced when generating this feature.default DiskConfiguration.BuilderConverts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
stateProvider
The block state provider used for the blocks that make up the disk.- Returns:
- the state provider
- Since:
- 3.0.0
-
target
The block predicate that must be passed for a block to be replaced when generating this feature.- Returns:
- the target predicate
- Since:
- 3.0.0
-
radius
The radius of this disk. Value between 0 and 8.- Returns:
- the radius
- Since:
- 3.0.0
-
halfHeight
Half of the height of this disk. Value between 0 and 4.- Returns:
- the half height
- 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 DiskConfiguration of(BlockStateProvider stateProvider, BlockPredicate target, IntProvider radius, int halfHeight) Creates a new disk configuration.- Parameters:
stateProvider- the block state provider used for the blocks that make up the disktarget- the block predicate that must be passed for a block to be replacedradius- the radius of this diskhalfHeight- half of the height of this disk- Returns:
- a new disk configuration
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-