Class HumanEntityInventoryViewItemMatcher

java.lang.Object
org.hamcrest.BaseMatcher<HumanEntityMock>
org.hamcrest.TypeSafeMatcher<HumanEntityMock>
org.mockbukkit.mockbukkit.matcher.entity.human.HumanEntityInventoryViewItemMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<HumanEntityMock>, org.hamcrest.SelfDescribing

public class HumanEntityInventoryViewItemMatcher extends org.hamcrest.TypeSafeMatcher<HumanEntityMock>
  • Constructor Details

    • HumanEntityInventoryViewItemMatcher

      public HumanEntityInventoryViewItemMatcher(Material material)
  • Method Details

    • matchesSafely

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

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

      protected void describeMismatchSafely(HumanEntityMock humanEntityMock, org.hamcrest.Description mismatchDescription)
      Overrides:
      describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<HumanEntityMock>
    • hasItemInInventoryView

      @NotNull public static @NotNull HumanEntityInventoryViewItemMatcher hasItemInInventoryView(Material material)
      Parameters:
      material - The material of the item required for a match
      Returns:
      A matcher which matches with any human entity with the specified item in inventory
    • hasItemInInventoryView

      @NotNull public static @NotNull HumanEntityInventoryViewItemMatcher hasItemInInventoryView(@NotNull @NotNull ItemStack item)
      Parameters:
      item - The item required for a match
      Returns:
      A matcher which matches with any human entity with the specified item in inventory
    • doesNotHaveItemInInventoryView

      @NotNull public static @NotNull org.hamcrest.Matcher<HumanEntityMock> doesNotHaveItemInInventoryView(@NotNull @NotNull ItemStack item)
      Parameters:
      item - The item required for no match
      Returns:
      A matcher which matches with any human entity without the specified item in inventory
    • doesNotHaveItemInInventoryView

      @NotNull public static @NotNull org.hamcrest.Matcher<HumanEntityMock> doesNotHaveItemInInventoryView(Material material)
      Parameters:
      material - The material of the item required for no match
      Returns:
      A matcher which matches with any human entity without the specified item in inventory