Interface MatchingBlocksPredicate
- All Superinterfaces:
BlockPredicate, Wrapper
Checks if the block at the specified offset is one of the specified blocks.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionblocks()The blocks to match against.builder()Creates a new builder.static MatchingBlocksPredicateCreates a new matching blocks predicate with a zero offset.static MatchingBlocksPredicateof(BlockVector offset, List<Material> blocks) Creates a new matching blocks predicate.offset()The offset from the block to check.default MatchingBlocksPredicate.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
-
blocks
-
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 matching blocks predicate.- Parameters:
offset- the offsetblocks- the blocks to match against- Returns:
- the matching blocks predicate
- Since:
- 3.0.0
-
of
Creates a new matching blocks predicate with a zero offset.- Parameters:
blocks- the blocks to match against- Returns:
- the matching blocks predicate
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-