Interface MatchingBlocksPredicate

All Superinterfaces:
BlockPredicate, Wrapper

@NullMarked @AsOf("3.0.0") public interface MatchingBlocksPredicate extends BlockPredicate
Checks if the block at the specified offset is one of the specified blocks.
Since:
3.0.0
See Also:
  • Method Details

    • offset

      @AsOf("3.0.0") BlockVector offset()
      The offset from the block to check.
      Returns:
      the offset
      Since:
      3.0.0
    • blocks

      @AsOf("3.0.0") List<Material> blocks()
      The blocks to match against.
      Returns:
      the blocks
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default MatchingBlocksPredicate.Builder 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 MatchingBlocksPredicate of(BlockVector offset, List<Material> blocks)
      Creates a new matching blocks predicate.
      Parameters:
      offset - the offset
      blocks - the blocks to match against
      Returns:
      the matching blocks predicate
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static MatchingBlocksPredicate of(List<Material> blocks)
      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

      @AsOf("3.0.0") static MatchingBlocksPredicate.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0