Interface BlockPredicateFilter

All Superinterfaces:
PlacementFilter, PlacementModifier, Wrapper

@NullMarked @AsOf("3.0.0") public interface BlockPredicateFilter extends PlacementFilter
Returns the current position when the predicate is passed, otherwise return empty.
Since:
3.0.0
See Also:
  • Method Details

    • predicate

      @AsOf("3.0.0") BlockPredicate predicate()
      The block predicate to test.
      Returns:
      the block predicate
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static BlockPredicateFilter of(BlockPredicate predicate)
      Creates a new block predicate filter.
      Parameters:
      predicate - the block predicate
      Returns:
      a new block predicate filter
      Since:
      3.0.0