Add functionality in IItemHandler to test if a slot can accept an item (#5033)

This commit is contained in:
Cody Brittain authored and LexManos committed 2018-07-28 17:38:18 -07:00
1 parent eb870bc84c
commit 4acfca27f8
10 files changed
+105 -28

No files matched your search

@@ -164,6 +164,12 @@ public class ItemStackHandler implements IItemHandler, IItemHandlerModifiable, I
return Math.min(getSlotLimit(slot), stack.getMaxStackSize());
}
@Override
public boolean isItemValid(int slot, @Nonnull ItemStack stack)
{
return true;
}
@Override
public NBTTagCompound serializeNBT()
{