Interface BlockColumnConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
A feature that consists of glow berries, found in lush caves.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder forBlockColumnConfiguration.static final recordA single layer of a block column, pairing a height with the block state used for that height. -
Field Summary
FieldsFields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionThe block predicate that must be passed for each position of the column.builder()Creates a new builder.The direction the column is built in.layer(IntProvider height, BlockStateProvider state) Creates a new layer for a block column.layers()The layers of this column.static BlockColumnConfigurationof(List<BlockColumnConfiguration.Layer> layers, BlockFace direction, BlockPredicate allowedPlacement, boolean prioritizeTip) Creates a new block column configuration.booleanDetermines where to cut off blocks when space is restricted.static BlockColumnConfigurationsimple(IntProvider height, BlockStateProvider state) Creates a block column configuration consisting of a single layer.default BlockColumnConfiguration.BuilderConverts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Field Details
-
ONLY_IN_AIR_PREDICATE
-
-
Method Details
-
layers
The layers of this column.- Returns:
- an immutable list of layers
- Since:
- 3.0.0
-
direction
-
allowedPlacement
The block predicate that must be passed for each position of the column.- Returns:
- the allowed placement predicate
- Since:
- 3.0.0
-
prioritizeTip
Determines where to cut off blocks when space is restricted. Iftrue, layers are removed from the start of the column.- Returns:
- whether the tip is prioritized
- 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 BlockColumnConfiguration of(List<BlockColumnConfiguration.Layer> layers, BlockFace direction, BlockPredicate allowedPlacement, boolean prioritizeTip) Creates a new block column configuration.- Parameters:
layers- the layers of the columndirection- the direction the column is built inallowedPlacement- the block predicate that must be passed for each position of the columnprioritizeTip- whether layers are removed from the start of the column when space is restricted- Returns:
- a new block column configuration
- Since:
- 3.0.0
-
layer
@AsOf("3.0.0") static BlockColumnConfiguration.Layer layer(IntProvider height, BlockStateProvider state) Creates a new layer for a block column.- Parameters:
height- the height of the layerstate- the block state provider used for the layer- Returns:
- a new layer
- Since:
- 3.0.0
-
simple
Creates a block column configuration consisting of a single layer.- Parameters:
height- the height of the layerstate- the block state provider used for the layer- Returns:
- a new block column configuration
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-