Class AllayCurrentItemMatcher

java.lang.Object
org.hamcrest.BaseMatcher<AllayMock>
org.hamcrest.TypeSafeMatcher<AllayMock>
org.mockbukkit.mockbukkit.matcher.entity.allay.AllayCurrentItemMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<AllayMock>, org.hamcrest.SelfDescribing

public class AllayCurrentItemMatcher extends org.hamcrest.TypeSafeMatcher<AllayMock>
  • Method Details

    • matchesSafely

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

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

      protected void describeMismatchSafely(AllayMock allay, org.hamcrest.Description mismatchDescription)
      Overrides:
      describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<AllayMock>
    • hasCurrentItem

      @NotNull public static @NotNull AllayCurrentItemMatcher hasCurrentItem(@NotNull @NotNull Material currentItem)
      Parameters:
      currentItem - The material of the item to be held for there to be a match
      Returns:
      A matcher which matches with any allay holding the specified item
    • doesNotHaveCurrentItem

      @NotNull public static @NotNull org.hamcrest.Matcher<AllayMock> doesNotHaveCurrentItem(@NotNull @NotNull Material currentItem)
      Parameters:
      currentItem - The material of the item to be held for there to be no match
      Returns:
      A matcher which matches with any allay not holding the specified item