Class InventoryHolderContainsMatcher
java.lang.Object
org.hamcrest.BaseMatcher<InventoryHolder>
org.hamcrest.TypeSafeMatcher<InventoryHolder>
org.mockbukkit.mockbukkit.matcher.inventory.holder.InventoryHolderContainsMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<InventoryHolder>,org.hamcrest.SelfDescribing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddescribeMismatchSafely(InventoryHolder inventoryHolder, @NotNull org.hamcrest.Description mismatchDescription) voiddescribeTo(org.hamcrest.Description description) static @NotNull org.hamcrest.Matcher<InventoryHolder> doesNotHaveItemInInventory(@NotNull ItemStack itemStack) static @NotNull InventoryHolderContainsMatcherhasItemInInventory(@NotNull ItemStack itemStack) protected booleanmatchesSafely(InventoryHolder inventoryHolder) 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
-
InventoryHolderContainsMatcher
-
-
Method Details
-
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<InventoryHolder>
-
describeTo
public void describeTo(org.hamcrest.Description description) -
describeMismatchSafely
protected void describeMismatchSafely(InventoryHolder inventoryHolder, @NotNull @NotNull org.hamcrest.Description mismatchDescription) - Overrides:
describeMismatchSafelyin classorg.hamcrest.TypeSafeMatcher<InventoryHolder>
-
hasItemInInventory
@NotNull public static @NotNull InventoryHolderContainsMatcher hasItemInInventory(@NotNull @NotNull ItemStack itemStack) - Parameters:
itemStack- The item stack required for there to be a match- Returns:
- A matcher which matches with any inventory of specified item stack
-
doesNotHaveItemInInventory
@NotNull public static @NotNull org.hamcrest.Matcher<InventoryHolder> doesNotHaveItemInInventory(@NotNull @NotNull ItemStack itemStack) - Parameters:
itemStack- The item stack required for there to be no match- Returns:
- A matcher which matches with any inventory without the specified item stack
-