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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddescribeMismatchSafely(HumanEntityMock humanEntityMock, org.hamcrest.Description mismatchDescription) voiddescribeTo(org.hamcrest.Description description) static @NotNull org.hamcrest.Matcher<HumanEntityMock> doesNotHaveInventoryViewType(@NotNull InventoryType inventoryType) static @NotNull HumanEntityInventoryViewTypeMatcherhasInventoryViewType(@NotNull InventoryType inventoryType) protected booleanmatchesSafely(HumanEntityMock humanEntityMock) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
HumanEntityInventoryViewTypeMatcher
-
-
Method Details
-
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<HumanEntityMock>
-
describeTo
public void describeTo(org.hamcrest.Description description) -
describeMismatchSafely
protected void describeMismatchSafely(HumanEntityMock humanEntityMock, org.hamcrest.Description mismatchDescription) - Overrides:
describeMismatchSafelyin classorg.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
-