Class BlockMaterialTypeMatcher

java.lang.Object
org.hamcrest.BaseMatcher<BlockMock>
org.hamcrest.TypeSafeMatcher<BlockMock>
org.mockbukkit.mockbukkit.matcher.block.BlockMaterialTypeMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<BlockMock>, org.hamcrest.SelfDescribing

public class BlockMaterialTypeMatcher extends org.hamcrest.TypeSafeMatcher<BlockMock>
  • Method Details

    • matchesSafely

      protected boolean matchesSafely(BlockMock blockMock)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeMatcher<BlockMock>
    • describeTo

      public void describeTo(org.hamcrest.Description description)
    • describeMismatchSafely

      protected void describeMismatchSafely(BlockMock item, org.hamcrest.Description mismatchDescription)
      Overrides:
      describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<BlockMock>
    • hasMaterial

      @NotNull public static @NotNull BlockMaterialTypeMatcher hasMaterial(@NotNull @NotNull Material material)
      Parameters:
      material - The material that the block should have
      Returns:
      A matcher which matches blocks with the specified material
    • doesNotHaveMaterial

      @NotNull public static @NotNull org.hamcrest.Matcher<BlockMock> doesNotHaveMaterial(@NotNull @NotNull Material material)
      Parameters:
      material - The material that the block should not have
      Returns:
      A matcher which matches blocks without the specified material