Interface ReplaceablePredicate
- All Superinterfaces:
BlockPredicate, Wrapper
Checks if the block at the specified offset can be replaced by placing blocks.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ReplaceablePredicate.Builderbuilder()Creates a new builder.static ReplaceablePredicateof()Creates a new replaceable predicate with a zero offset.static ReplaceablePredicateof(BlockVector offset) Creates a new replaceable predicate.offset()The offset from the block to check.default ReplaceablePredicate.BuilderConverts this object back to a builder.Methods inherited from interface BlockPredicate
notMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
offset
The offset from the block to check.- Returns:
- the offset
- 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
Creates a new replaceable predicate.- Parameters:
offset- the offset- Returns:
- the replaceable predicate
- Since:
- 3.0.0
-
of
Creates a new replaceable predicate with a zero offset.- Returns:
- the replaceable predicate
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-