Interface SimpleBlockConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
A feature that places a block based on a block state provider.
- 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.static SimpleBlockConfigurationof(BlockStateProvider toPlace) Creates a new simple block configuration.static SimpleBlockConfigurationof(BlockStateProvider toPlace, boolean scheduleTick) Creates a new simple block configuration.booleanWhether to schedule a block update.default SimpleBlockConfiguration.BuilderConverts this object back to a builder.toPlace()The block to use.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
toPlace
The block to use.- Returns:
- the block state provider
- Since:
- 3.0.0
-
scheduleTick
Whether to schedule a block update.- Returns:
- whether to schedule a block update
- 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
Creates a new simple block configuration.- Parameters:
toPlace- the block state providerscheduleTick- whether to schedule a block update- Returns:
- a new simple block configuration
- Since:
- 3.0.0
-
of
Creates a new simple block configuration.- Parameters:
toPlace- the block state provider- Returns:
- a new simple block configuration
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-