Interface WouldSurvivePredicate

All Superinterfaces:
BlockPredicate, Wrapper

@NullMarked @AsOf("3.0.0") public interface WouldSurvivePredicate extends BlockPredicate
Checks if the specified block state would be a valid placement at the given offset.
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
    • state

      @AsOf("3.0.0") BlockData state()
      The block state to test for survival.
      Returns:
      the block state
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default WouldSurvivePredicate.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 WouldSurvivePredicate of(BlockVector offset, BlockData state)
      Creates a new would survive predicate.
      Parameters:
      offset - the offset
      state - the block state to test
      Returns:
      the would survive predicate
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static WouldSurvivePredicate of(BlockData state)
      Creates a new would survive predicate with a zero offset.
      Parameters:
      state - the block state to test
      Returns:
      the would survive predicate
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static WouldSurvivePredicate of(BlockVector offset, Material material)
      Creates a new would survive predicate.
      Parameters:
      offset - the offset
      material - the material to test
      Returns:
      the would survive predicate
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static WouldSurvivePredicate of(Material material)
      Creates a new would survive predicate with a zero offset.
      Parameters:
      material - the material to test
      Returns:
      the would survive predicate
      Since:
      3.0.0
    • builder

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