Interface TagMatchTest

All Superinterfaces:
RuleTest, Wrapper

@NullMarked @AsOf("3.0.0") public interface TagMatchTest extends RuleTest
Tests if the block is in the specified block tag.
Since:
3.0.0
See Also:
  • Method Details

    • tag

      @AsOf("3.0.0") ResourceKey tag()
      The tag to match.
      Returns:
      the tag
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static TagMatchTest of(ResourceKey tag)
      Creates a new tag match test.
      Parameters:
      tag - the tag to match
      Returns:
      the tag match test
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static TagMatchTest of(Tag<Material> tag)
      Creates a new tag match test.
      Parameters:
      tag - the tag to match
      Returns:
      the tag match test
      Since:
      3.0.0