return InventoryHelper.getInventory((IInventory) tile);
}
private IInventory getInventory(ForgeDirection ori) {
IInventory rawInventory = getRawInventory(ori);
if (rawInventory instanceof net.minecraft.inventory.ISidedInventory) return new SidedInventoryMinecraftAdapter((net.minecraft.inventory.ISidedInventory) rawInventory, ori.getOpposite(), false);
return rawInventory;
}