public class OreStackFilter extends java.lang.Object implements IStackFilter
Constructor and Description |
---|
OreStackFilter(java.lang.String... iOres) |
Modifier and Type | Method and Description |
---|---|
static StackDefinition |
definition(int count,
java.lang.String... ores) |
static StackDefinition |
definition(java.lang.String... ores) |
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
getExamples()
Returns example stack to match this filter
|
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
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> getExamples()
IStackFilter
getExamples
in interface IStackFilter
public static StackDefinition definition(int count, java.lang.String... ores)
public static StackDefinition definition(java.lang.String... ores)