public interface IItemHandlerFiltered
extends net.minecraftforge.items.IItemHandler
IItemHandler
that has a single valid stack per slot, as specified by getFilter(int)
. Note
that any IItemHandler
can implement this (even if the filter behaviour is more complex, or their isn't
actually a filter at all)Modifier and Type | Method and Description |
---|---|
default net.minecraft.item.ItemStack |
getFilter(int slot) |
default net.minecraft.item.ItemStack getFilter(int slot)
slot
- the slot to testItemStack.EMPTY
if this is not filtered to a single item (for
example if this will match against a few stacks, or nothing is allowed, or a wide range of stacks are
allowed). Will be equal to IItemHandler.getStackInSlot(int)
if the slot currently contains an item.