Interface MultifaceGrowthConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
@NullMarked
@AsOf("3.0.0")
public interface MultifaceGrowthConfiguration
extends FeatureConfiguration
A feature that consists of several sculk vein or glow lichen blocks.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder forMultifaceGrowthConfiguration. -
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.A set of materials that the block can be placed on.booleanIf the block can be placed on the ceiling.booleanIf the block can be placed on the floor.booleanIf the block can be placed on the wall.floatThe chance of the block spreading between 0.0 and 1.0.static MultifaceGrowthConfigurationof(Material placeBlock, int searchRange, boolean canPlaceOnFloor, boolean canPlaceOnCeiling, boolean canPlaceOnWall, float chanceOfSpreading, Set<Material> canBePlacedOn) Creates a new multiface growth configuration.The block to place.intThe search range between 1 and 64.Converts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
placeBlock
-
searchRange
The search range between 1 and 64.- Returns:
- the search range
- Since:
- 3.0.0
-
canPlaceOnFloor
If the block can be placed on the floor.- Returns:
- whether the block can be placed on the floor
- Since:
- 3.0.0
-
canPlaceOnCeiling
If the block can be placed on the ceiling.- Returns:
- whether the block can be placed on the ceiling
- Since:
- 3.0.0
-
canPlaceOnWall
If the block can be placed on the wall.- Returns:
- whether the block can be placed on the wall
- Since:
- 3.0.0
-
chanceOfSpreading
The chance of the block spreading between 0.0 and 1.0.- Returns:
- the chance of spreading
- Since:
- 3.0.0
-
canBePlacedOn
-
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 MultifaceGrowthConfiguration of(Material placeBlock, int searchRange, boolean canPlaceOnFloor, boolean canPlaceOnCeiling, boolean canPlaceOnWall, float chanceOfSpreading, Set<Material> canBePlacedOn) Creates a new multiface growth configuration.- Parameters:
placeBlock- the block to placesearchRange- the search rangecanPlaceOnFloor- whether the block can be placed on the floorcanPlaceOnCeiling- whether the block can be placed on the ceilingcanPlaceOnWall- whether the block can be placed on the wallchanceOfSpreading- the chance of the block spreadingcanBePlacedOn- a set of materials that the block can be placed on- Returns:
- a new multiface growth configuration
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-