Interface MangroveRootPlacement
- All Superinterfaces:
Wrapper
The mangrove root placement parameters used by a
MangroveRootPlacer.- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.The blocks that roots can grow through.intThe maximum length of the root, between 1 and 64 (inclusive).intThe maximum width of the root, between 1 and 12 (inclusive).The blocks in which roots turn into muddy root blocks.The blocks used as muddy roots.static MangroveRootPlacementof(Set<Material> canGrowThrough, Set<Material> muddyRootsIn, BlockStateProvider muddyRootsProvider, int maxRootWidth, int maxRootLength) Creates a new mangrove root placement.static MangroveRootPlacementof(Set<Material> canGrowThrough, Set<Material> muddyRootsIn, BlockStateProvider muddyRootsProvider, int maxRootWidth, int maxRootLength, float randomSkewChance) floatThe probability of random skew, between 0.0F and 1.0F (inclusive).default MangroveRootPlacement.BuilderConverts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
canGrowThrough
-
muddyRootsIn
-
muddyRootsProvider
The blocks used as muddy roots.- Returns:
- the muddy roots block state provider
- Since:
- 3.0.0
-
maxRootWidth
The maximum width of the root, between 1 and 12 (inclusive).- Returns:
- the maximum root width
- Since:
- 3.0.0
-
maxRootLength
The maximum length of the root, between 1 and 64 (inclusive).- Returns:
- the maximum root length
- Since:
- 3.0.0
-
randomSkewChance
The probability of random skew, between 0.0F and 1.0F (inclusive).- Returns:
- the random skew chance
- 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 MangroveRootPlacement of(Set<Material> canGrowThrough, Set<Material> muddyRootsIn, BlockStateProvider muddyRootsProvider, int maxRootWidth, int maxRootLength) Creates a new mangrove root placement.- Parameters:
canGrowThrough- the blocks that roots can grow throughmuddyRootsIn- the blocks in which roots turn into muddy root blocksmuddyRootsProvider- the blocks used as muddy rootsmaxRootWidth- the maximum width of the root, between 1 and 12 (inclusive)maxRootLength- the maximum length of the root, between 1 and 64 (inclusive)- Returns:
- a new mangrove root placement
- Since:
- 3.0.0
-
of
@Internal static MangroveRootPlacement of(Set<Material> canGrowThrough, Set<Material> muddyRootsIn, BlockStateProvider muddyRootsProvider, int maxRootWidth, int maxRootLength, float randomSkewChance) -
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-