Interface SpikeConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
An ice spike.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionstatic SpikeConfiguration.Builderbuilder()Creates a new builder.The predicate that defines which blocks the spike can be placed on.The predicate that defines which blocks the spike can replace.static SpikeConfigurationof(BlockData state, BlockPredicate canPlaceOn, BlockPredicate canReplace) Creates a new spike configuration.state()The block to use.default SpikeConfiguration.BuilderConverts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
state
-
canPlaceOn
The predicate that defines which blocks the spike can be placed on.- Returns:
- the predicate
- Since:
- 3.0.0
-
canReplace
The predicate that defines which blocks the spike can replace.- Returns:
- the predicate
- 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 SpikeConfiguration of(BlockData state, BlockPredicate canPlaceOn, BlockPredicate canReplace) Creates a new spike configuration.- Parameters:
state- the block statecanPlaceOn- the predicate that defines which blocks the spike can be placed oncanReplace- the predicate that defines which blocks the spike can replace- Returns:
- a new spike configuration
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-