private ItemStack extract(AdjacentTile tile, ItemIdentifier item, int amount) {
if (tile.tile instanceof LogisticsCraftingTableTileEntity) {
return extractFromLogisticsCraftingTable((LogisticsCraftingTableTileEntity)tile.tile, item, amount);
} else if (tile.tile instanceof net.minecraft.inventory.ISidedInventory) {
IInventory sidedadapter = new SidedInventoryMinecraftAdapter((net.minecraft.inventory.ISidedInventory) tile.tile, ForgeDirection.UNKNOWN, true);
return extractFromIInventory(sidedadapter, item, amount);
} else if (tile.tile instanceof IInventory) {
return extractFromIInventory((IInventory)tile.tile, item, amount);
}
return null;