Use IItemHandler instead of IInventory internally (#2971)

* Use IItemHandler instead of IInventory internally
This commit is contained in:
fscan
2017-07-28 22:04:32 +02:00
committed by yueh
parent c077840988
commit 52d28fabe3
156 changed files with 2410 additions and 4604 deletions
@@ -38,6 +38,12 @@ public class AdaptorItemHandler extends InventoryAdaptor
this.itemHandler = itemHandler;
}
@Override
public boolean hasSlots()
{
return itemHandler.getSlots() > 0;
}
@Override
public ItemStack removeItems( int amount, ItemStack filter, IInventoryDestination destination )
{