Class PlayerConsumeItemMatcher
java.lang.Object
org.hamcrest.BaseMatcher<PlayerMock>
org.hamcrest.TypeSafeMatcher<PlayerMock>
org.mockbukkit.mockbukkit.matcher.entity.player.PlayerConsumeItemMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<PlayerMock>,org.hamcrest.SelfDescribing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddescribeMismatchSafely(PlayerMock playerMock, org.hamcrest.Description description) voiddescribeTo(org.hamcrest.Description description) static @NotNull PlayerConsumeItemMatcherhasConsumed(@NotNull ItemStack itemStack) static @NotNull org.hamcrest.Matcher<PlayerMock> hasNotConsumed(@NotNull ItemStack itemStack) protected booleanmatchesSafely(PlayerMock playerMock) 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
-
PlayerConsumeItemMatcher
-
-
Method Details
-
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<PlayerMock>
-
describeTo
public void describeTo(org.hamcrest.Description description) -
describeMismatchSafely
- Overrides:
describeMismatchSafelyin classorg.hamcrest.TypeSafeMatcher<PlayerMock>
-
hasConsumed
@NotNull public static @NotNull PlayerConsumeItemMatcher hasConsumed(@NotNull @NotNull ItemStack itemStack) - Parameters:
itemStack- The required item to have been consumed- Returns:
- A matcher which matches with any player that has consumed the specified item
-
hasNotConsumed
@NotNull public static @NotNull org.hamcrest.Matcher<PlayerMock> hasNotConsumed(@NotNull @NotNull ItemStack itemStack) - Parameters:
itemStack- The required item to not have been consumed- Returns:
- A matcher which matches with any player that has not consumed the specified item
-