return tile instanceof ISidedInventory ? ((ISidedInventory) tile).canInsertItem(i, itemstack, j) : tile instanceof IInventory;
}
@Override
public boolean canExtractItem(int i, ItemStack itemstack, int j) {
TileEntity tile = getTile();
return tile instanceof ISidedInventory ? ((ISidedInventory) tile).canExtractItem(i, itemstack, j) : tile instanceof IInventory;
}