Combine the pineapple skin and core, allspice berries, star anise, cinnamon and 6 cups water in a 4-quart saucepan. Bring the mixture to a boil, lower the heat and simmer for 1 hour. Remove from the heat and add the tea bags; let the tea bags steep for at least 20 minutes and up to 6 hours. Strain the pineapple tea and cool completely. Serve over ice with pineapple wedges.