466467468469470471472473474475476
} ISidedInventory target; if(te instanceof ISidedInventory) { target = (ISidedInventory) te; } else { target = new InventoryWrapper((IInventory) te); } int[] targetSlots = target.getAccessibleSlotsFromSide(dir.getOpposite().ordinal()); if(targetSlots == null) { return false;
248249250251252253254255
TileEntity te = world.getTileEntity(location.x, location.y, location.z); if(te instanceof ISidedInventory) { inv = (ISidedInventory) te; } else if(te instanceof IInventory) { inv = new InventoryWrapper((IInventory) te); } }