Interface AboveRootPlacement
- All Superinterfaces:
Wrapper
The blocks placed above the root of a tree.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfloatThe probability of generating the block, between 0.0F and 1.0F (inclusive).The block above the root.static AboveRootPlacement.Builderbuilder()Creates a new builder.static AboveRootPlacementof(BlockStateProvider aboveRootProvider, float aboveRootPlacementChance) Creates a new above root placement.default AboveRootPlacement.BuilderConverts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
aboveRootProvider
The block above the root.- Returns:
- the above root block state provider
- Since:
- 3.0.0
-
aboveRootPlacementChance
The probability of generating the block, between 0.0F and 1.0F (inclusive).- Returns:
- the above root placement 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 AboveRootPlacement of(BlockStateProvider aboveRootProvider, float aboveRootPlacementChance) Creates a new above root placement.- Parameters:
aboveRootProvider- the block above the rootaboveRootPlacementChance- the probability of generating the block, between 0.0F and 1.0F (inclusive)- Returns:
- a new above root placement
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-