Class ItemMatcher
java.lang.Object
com.gtnewhorizons.horizonqa.api.gt.ItemMatcher
Predicate for
Bus.assertContains(net.minecraft.item.ItemStack) and {@link BusGroup# assertContains}. Default matching ignores stack size;
use count(int) to require a minimum amount in the matched slot.-
Method Summary
Modifier and TypeMethodDescriptioncount(int n) Returns a new matcher that also requires at leastnitems in the stack.booleanmatches(net.minecraft.item.ItemStack stack) static ItemMatcherof(net.minecraft.item.ItemStack template) Same item, damage, and NBT astemplate; stack size ignored unlesscount(int)is used.static ItemMatchertoString()
-
Method Details
-
of
Same item, damage, and NBT astemplate; stack size ignored unlesscount(int)is used. -
predicate
-
count
Returns a new matcher that also requires at leastnitems in the stack. -
matches
public boolean matches(net.minecraft.item.ItemStack stack) -
toString
-