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 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> doesNotHaveItemInInventoryView(@NotNull ItemStack item) static @NotNull org.hamcrest.Matcher<HumanEntityMock> doesNotHaveItemInInventoryView(Material material) static @NotNull HumanEntityInventoryViewItemMatcherhasItemInInventoryView(@NotNull ItemStack item) static @NotNull HumanEntityInventoryViewItemMatcherhasItemInInventoryView(Material material) 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
-
HumanEntityInventoryViewItemMatcher
-
-
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>
-
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
-