package untouchedwagons.minecraft.mcrc2.minecraft;
import cpw.mods.fml.common.FMLLog;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import untouchedwagons.minecraft.mcrc2.api.mods.IModSupportService;
import untouchedwagons.minecraft.mcrc2.api.recipes.RecipeWrapper;
import untouchedwagons.minecraft.mcrc2.minecraft.recipes.potion.PotionRecipe;
import untouchedwagons.minecraft.mcrc2.minecraft.recipes.potion.PotionRecipeWrapper;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
public class MinecraftPotionSupportService implements IModSupportService {
private List<RecipeWrapper> potion_recipes;
private Map<Item, String> item_id_lookup;
public MinecraftPotionSupportService()
{
this.potion_recipes = new ArrayList<RecipeWrapper>();
}
@Override
public void setItemIdReverseLookup(Map<Item, String> item_id_lookup) {
this.item_id_lookup = item_id_lookup;
this.createRecipes();
}
@Override
public void setRecipeWrapperRepository(Map<Class<? extends IRecipe>, Class<? extends RecipeWrapper>> wrapper_providers) {
}
@Override
public boolean shouldActivateService() {
return true;
}
@Override
public Iterator<RecipeWrapper> iterator() {
return this.potion_recipes.iterator();
}
private void createRecipes()
{
// Awkward Potion
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16, 0, new ItemStack(Items.nether_wart)), this.item_id_lookup));
// Regen
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8193, 16, new ItemStack(Items.ghast_tear)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8225, 8193, new ItemStack(Items.glowstone_dust)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8257, 8193, new ItemStack(Items.redstone)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16385, 8193, new ItemStack(Items.gunpowder)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16417, 8225, new ItemStack(Items.gunpowder)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16449, 8257, new ItemStack(Items.gunpowder)), this.item_id_lookup));
// Speed
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8194, 16, new ItemStack(Items.sugar)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8226, 8194, new ItemStack(Items.glowstone_dust)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8258, 8194, new ItemStack(Items.redstone)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16386, 8194, new ItemStack(Items.gunpowder)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16418, 8226, new ItemStack(Items.gunpowder)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16450, 8258, new ItemStack(Items.gunpowder)), this.item_id_lookup));
// Fire Resist
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8195, 16, new ItemStack(Items.magma_cream)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8259, 8195, new ItemStack(Items.redstone)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16387, 8195, new ItemStack(Items.gunpowder)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16451, 8259, new ItemStack(Items.gunpowder)), this.item_id_lookup));
// Poison
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8196, 16, new ItemStack(Items.spider_eye)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8228, 8196, new ItemStack(Items.glowstone_dust)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8260, 8196, new ItemStack(Items.redstone)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16388, 8196, new ItemStack(Items.gunpowder)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16420, 8228, new ItemStack(Items.gunpowder)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16452, 8260, new ItemStack(Items.gunpowder)), this.item_id_lookup));
// Healing
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8197, 16, new ItemStack(Items.speckled_melon)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8229, 8197, new ItemStack(Items.glowstone_dust)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16389, 8197, new ItemStack(Items.gunpowder)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16421, 8229, new ItemStack(Items.gunpowder)), this.item_id_lookup));
// Night Vision
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8198, 16, new ItemStack(Items.golden_carrot)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8262, 8198, new ItemStack(Items.redstone)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16390, 8198, new ItemStack(Items.gunpowder)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16454, 8262, new ItemStack(Items.gunpowder)), this.item_id_lookup));
// Weakness
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8200, 0, new ItemStack(Items.fermented_spider_eye)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8264, 8200, new ItemStack(Items.redstone)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16392, 8200, new ItemStack(Items.gunpowder)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16456, 8264, new ItemStack(Items.gunpowder)), this.item_id_lookup));
// Strength
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8201, 16, new ItemStack(Items.blaze_powder)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8233, 8201, new ItemStack(Items.glowstone_dust)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8265, 8201, new ItemStack(Items.redstone)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16393, 8201, new ItemStack(Items.gunpowder)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16425, 8233, new ItemStack(Items.gunpowder)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16457, 8265, new ItemStack(Items.nether_wart)), this.item_id_lookup));
// Slowness
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8202, 8194, new ItemStack(Items.fermented_spider_eye)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8202, 8195, new ItemStack(Items.fermented_spider_eye)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8266, 8202, new ItemStack(Items.redstone)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16394, 8202, new ItemStack(Items.gunpowder)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16458, 8266, new ItemStack(Items.gunpowder)), this.item_id_lookup));
// Harming
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8204, 8196, new ItemStack(Items.fermented_spider_eye)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8204, 8197, new ItemStack(Items.fermented_spider_eye)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8204, 8205, new ItemStack(Items.fermented_spider_eye)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8236, 8204, new ItemStack(Items.glowstone_dust)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16396, 8204, new ItemStack(Items.gunpowder)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16428, 8236, new ItemStack(Items.gunpowder)), this.item_id_lookup));
// Water Breathing
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8205, 16, new ItemStack(Items.fish, 1, 3)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8269, 8205, new ItemStack(Items.redstone)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16397, 8205, new ItemStack(Items.gunpowder)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16461, 8269, new ItemStack(Items.gunpowder)), this.item_id_lookup));
// Invisibility
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8206, 8198, new ItemStack(Items.fermented_spider_eye)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(8270, 8206, new ItemStack(Items.redstone)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16398, 8206, new ItemStack(Items.gunpowder)), this.item_id_lookup));
this.potion_recipes.add (new PotionRecipeWrapper(new PotionRecipe(16462, 8270, new ItemStack(Items.gunpowder)), this.item_id_lookup));
// Are your eyes spinning? Mine are
}
}