Interface TreeConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
A tree configuration, as it appears in Minecraft.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionA rule-based block state provider defining how to replace the block below the trunk.static TreeConfiguration.Builderbuilder()Creates a new builder.Decorations to add to the tree apart from the trunk and leaves.Defines how foliage is generated.The block to use for the foliage.booleanWhen true, allows the tree to generate even if there are vines blocking it.Defines the width of the tree at different heights relative to the lowest trunk block.static TreeConfigurationof(BlockStateProvider trunkProvider, TrunkPlacer trunkPlacer, BlockStateProvider foliageProvider, FoliagePlacer foliagePlacer, @Nullable RootPlacer rootPlacer, FeatureSize minimumSize, List<TreeDecorator> decorators, boolean ignoreVines, BlockStateProvider belowTrunkProvider) Creates a new tree configuration.Defines how roots are generated and what blocks to use.default TreeConfiguration.BuilderConverts this object back to a builder.Defines how the trunk is generated.The block to use for the trunk.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
trunkProvider
The block to use for the trunk.- Returns:
- the trunk provider
- Since:
- 3.0.0
-
trunkPlacer
Defines how the trunk is generated.- Returns:
- the trunk placer
- Since:
- 3.0.0
-
foliageProvider
The block to use for the foliage.- Returns:
- the foliage provider
- Since:
- 3.0.0
-
foliagePlacer
Defines how foliage is generated.- Returns:
- the foliage placer
- Since:
- 3.0.0
-
rootPlacer
Defines how roots are generated and what blocks to use.- Returns:
- the root placer
- Since:
- 3.0.0
-
minimumSize
Defines the width of the tree at different heights relative to the lowest trunk block.- Returns:
- the minimum size
- Since:
- 3.0.0
-
decorators
Decorations to add to the tree apart from the trunk and leaves. This can be empty.- Returns:
- the decorators
- Since:
- 3.0.0
-
ignoreVines
When true, allows the tree to generate even if there are vines blocking it.- Returns:
- whether to ignore vines
- Since:
- 3.0.0
-
belowTrunkProvider
A rule-based block state provider defining how to replace the block below the trunk.- Returns:
- the below trunk provider
- Since:
- 3.0.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a new builder with the same values as this object
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static TreeConfiguration of(BlockStateProvider trunkProvider, TrunkPlacer trunkPlacer, BlockStateProvider foliageProvider, FoliagePlacer foliagePlacer, @Nullable RootPlacer rootPlacer, FeatureSize minimumSize, List<TreeDecorator> decorators, boolean ignoreVines, BlockStateProvider belowTrunkProvider) Creates a new tree configuration.- Parameters:
trunkProvider- the trunk providertrunkPlacer- the trunk placerfoliageProvider- the foliage providerfoliagePlacer- the foliage placerrootPlacer- the root placerminimumSize- the minimum sizedecorators- the decoratorsignoreVines- whether to ignore vinesbelowTrunkProvider- the below trunk provider- Returns:
- a new tree configuration
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-