Class HumanEntityInventoryViewTypeMatcher

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

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

    • HumanEntityInventoryViewTypeMatcher

      public HumanEntityInventoryViewTypeMatcher(InventoryType inventoryType)
  • 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>
    • hasInventoryViewType

      @NotNull public static @NotNull HumanEntityInventoryViewTypeMatcher hasInventoryViewType(@NotNull @NotNull InventoryType inventoryType)
      Parameters:
      inventoryType - The required inventory
      Returns:
      A matcher which matches with any human entity with the specified inventory
    • doesNotHaveInventoryViewType

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