Interface MatchingBlockTagPredicate

All Superinterfaces:
BlockPredicate, Wrapper

@NullMarked @AsOf("3.0.0") public interface MatchingBlockTagPredicate extends BlockPredicate
Checks if the block at the specified offset is in the given block tag.
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
    • tag

      @AsOf("3.0.0") ResourceKey tag()
      The block tag to check for.
      Returns:
      the tag
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default MatchingBlockTagPredicate.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 MatchingBlockTagPredicate of(BlockVector offset, ResourceKey tag)
      Creates a new matching block tag predicate.
      Parameters:
      offset - the offset
      tag - the tag
      Returns:
      the matching block tag predicate
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static MatchingBlockTagPredicate of(ResourceKey tag)
      Creates a new matching block tag predicate with a zero offset.
      Parameters:
      tag - the tag
      Returns:
      the matching block tag predicate
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static MatchingBlockTagPredicate of(BlockVector offset, Tag<Material> tag)
      Creates a new matching block tag predicate from a Bukkit tag.
      Parameters:
      offset - the offset
      tag - the tag
      Returns:
      the matching block tag predicate
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static MatchingBlockTagPredicate of(Tag<Material> tag)
      Creates a new matching block tag predicate with a zero offset from a Bukkit tag.
      Parameters:
      tag - the tag
      Returns:
      the matching block tag predicate
      Since:
      3.0.0
    • builder

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