Interface BlockStateMatchTest

All Superinterfaces:
RuleTest, Wrapper

@NullMarked @AsOf("3.0.0") public interface BlockStateMatchTest extends RuleTest
Tests is the block for the specified BlockData.
Since:
3.0.0
See Also:
  • Method Details

    • blockState

      @AsOf("3.0.0") BlockData blockState()
      The block state to match.
      Returns:
      the block state
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static BlockStateMatchTest of(BlockData blockState)
      Creates a new block state match test.
      Parameters:
      blockState - the block state to match
      Returns:
      the block state match test
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static BlockStateMatchTest of(Material material)
      Creates a new block state match test.
      Parameters:
      material - the material to match
      Returns:
      the block state match test
      Since:
      3.0.0