Interface FallenTreeConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
A feature that resembles a tree lying on the ground after falling over.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.The decorators applied to the fallen log of the tree.The length of the fallen log.static FallenTreeConfigurationof(BlockStateProvider trunkProvider, IntProvider logLength, List<TreeDecorator> stumpDecorators, List<TreeDecorator> logDecorators) Creates a new fallen tree configuration.The decorators applied to the stump of the fallen tree.default FallenTreeConfiguration.BuilderConverts this object back to a builder.The block state provider used for the fallen tree's trunk.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
trunkProvider
The block state provider used for the fallen tree's trunk.- Returns:
- the trunk provider
- Since:
- 3.0.0
-
logLength
The length of the fallen log. Value between 0 and 16.- Returns:
- the log length
- Since:
- 3.0.0
-
stumpDecorators
The decorators applied to the stump of the fallen tree.- Returns:
- an immutable list of stump decorators
- Since:
- 3.0.0
-
logDecorators
The decorators applied to the fallen log of the tree.- Returns:
- an immutable list of log decorators
- 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 FallenTreeConfiguration of(BlockStateProvider trunkProvider, IntProvider logLength, List<TreeDecorator> stumpDecorators, List<TreeDecorator> logDecorators) Creates a new fallen tree configuration.- Parameters:
trunkProvider- the block state provider used for the trunklogLength- the length of the fallen logstumpDecorators- the decorators applied to the stumplogDecorators- the decorators applied to the fallen log- Returns:
- a new fallen tree configuration
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-