- All Implemented Interfaces:
org.hamcrest.Matcher<ItemStack>, org.hamcrest.SelfDescribing
public class ItemSimilarityMatcher
extends org.hamcrest.TypeSafeMatcher<ItemStack>
-
Constructor Summary
Constructors
-
Method Summary
void
void
protected boolean
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
ItemSimilarityMatcher
public ItemSimilarityMatcher(ItemStack itemStack)
-
Method Details
-
matchesSafely
protected boolean matchesSafely(ItemStack itemStack)
- Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<ItemStack>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-
describeMismatchSafely
public void describeMismatchSafely(ItemStack itemStack,
org.hamcrest.Description description)
- Overrides:
describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<ItemStack>
-
similarTo
- Parameters:
itemStack - The required item stack to be similar to for a match
- Returns:
- A matcher which matches when an item stack is similar to the specified item stack
-
similarTo
- Parameters:
itemMaterial - The required material of the item stack to be similar to for a match
- Returns:
- A matcher which matches when an item stack is similar to the specified item stack