Interface ReplaceablePredicate

All Superinterfaces:
BlockPredicate, Wrapper

@NullMarked @AsOf("3.0.0") public interface ReplaceablePredicate extends BlockPredicate
Checks if the block at the specified offset can be replaced by placing 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
    • toBuilder

      @AsOf("3.0.0") default ReplaceablePredicate.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 ReplaceablePredicate of(BlockVector offset)
      Creates a new replaceable predicate.
      Parameters:
      offset - the offset
      Returns:
      the replaceable predicate
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static ReplaceablePredicate of()
      Creates a new replaceable predicate with a zero offset.
      Returns:
      the replaceable predicate
      Since:
      3.0.0
    • builder

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