public class CraftingFilter extends java.lang.Object implements IStackFilter
Constructor and Description |
---|
CraftingFilter(net.minecraft.item.ItemStack... stacks) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
getStacks() |
boolean |
hasFilter() |
boolean |
matches(net.minecraft.item.ItemStack stack)
Check to see if a given stack matches this filter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, getExamples
public boolean matches(@Nonnull net.minecraft.item.ItemStack stack)
IStackFilter
matches
in interface IStackFilter
stack
- The stack to test. stack.isEmpty will always return false.public net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getStacks()
public boolean hasFilter()