Interface HugeMushroomFeatureConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
@NullMarked
@AsOf("3.0.0")
public interface HugeMushroomFeatureConfiguration
extends FeatureConfiguration
Tree-like features that consist of mushroom blocks.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder forHugeMushroomFeatureConfiguration. -
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.The predicate that defines which blocks the huge mushroom can be placed on.The block to use for the cap.intThe size of the cap.of(BlockStateProvider capProvider, BlockStateProvider stemProvider, int foliageRadius, BlockPredicate canPlaceOn) Creates a new huge mushroom feature configuration.The block to use for the stem.Converts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
capProvider
The block to use for the cap.- Returns:
- the block state provider
- Since:
- 3.0.0
-
stemProvider
The block to use for the stem.- Returns:
- the block state provider
- Since:
- 3.0.0
-
foliageRadius
-
canPlaceOn
The predicate that defines which blocks the huge mushroom can be placed on.- Returns:
- the predicate
- 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 HugeMushroomFeatureConfiguration of(BlockStateProvider capProvider, BlockStateProvider stemProvider, int foliageRadius, BlockPredicate canPlaceOn) Creates a new huge mushroom feature configuration.- Parameters:
capProvider- the block state provider for the capstemProvider- the block state provider for the stemfoliageRadius- the radius of the capcanPlaceOn- the predicate that defines which blocks the huge mushroom can be placed on- Returns:
- a new huge mushroom feature configuration
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-