();
+
+ static { for(EnumTag s : EnumSet.allOf(EnumTag.class)) lookup.put(s.getId(), s); }
+
+ public int getId() { return id; }
+
+ public static EnumTag get(int id) {
+ if (lookup.get(id)==null||lookup.get(id).element==999)
+ return EnumTag.FLUX;
+ else
+ return lookup.get(id);
+ }
+
+}
diff --git a/common/thaumcraft/api/IAspectSource.java b/common/thaumcraft/api/IAspectSource.java
new file mode 100644
index 0000000..2936aba
--- /dev/null
+++ b/common/thaumcraft/api/IAspectSource.java
@@ -0,0 +1,63 @@
+package thaumcraft.api;
+
+
+/**
+ * @author Azanor
+ *
+ * This interface is implemented by tile entites (or possibly anything else) like jars, alembics and the
+ * crucible so that they can act as an essentia source for blocks like the infusion altar.
+ *
+ */
+public interface IAspectSource {
+
+ /**
+ * This method is used to add a certain amount of an aspect to the tile entity.
+ * @param tag
+ * @param amount
+ * @return the amount of aspect left over that could not be added.
+ */
+ public int addToSource(EnumTag tag, int amount);
+
+ /**
+ * Removes a certain amount of a specific aspect from the tile entity
+ * @param tag
+ * @param amount
+ * @return true if that amount of aspect was available and was removed
+ */
+ public boolean takeFromSource(EnumTag tag, int amount);
+
+ /**
+ * removes a bunch of different aspects and amounts from the tile entity.
+ * @param ot the ObjectTags object that contains the aspects and their amounts.
+ * @return true if all the aspects and their amounts were available and successfully removed
+ */
+ public boolean takeFromSource(ObjectTags ot);
+
+ /**
+ * Checks if the tile entity contains the listed amount (or more) of the aspect
+ * @param tag
+ * @param amount
+ * @return
+ */
+ public boolean doesSourceContainAmount(EnumTag tag,int amount);
+
+ /**
+ * Checks if the tile entity contains all the listed aspects and their amounts
+ * @param ot the ObjectTags object that contains the aspects and their amounts.
+ * @return
+ */
+ public boolean doesSourceContain(ObjectTags ot);
+
+ /**
+ * Returns how much of the aspect this tile entity contains
+ * @param tag
+ * @return the amount of that aspect found
+ */
+ public int sourceContains(EnumTag tag);
+
+ /**
+ * Returns all the aspects and their amounts that this tile entity contains
+ * @return
+ */
+ public ObjectTags getSourceTags();
+}
diff --git a/common/thaumcraft/api/IVisDiscounter.java b/common/thaumcraft/api/IVisDiscounter.java
new file mode 100644
index 0000000..737bcf7
--- /dev/null
+++ b/common/thaumcraft/api/IVisDiscounter.java
@@ -0,0 +1,15 @@
+package thaumcraft.api;
+
+
+
+/**
+ * @author Azanor
+ * ItemArmor with this interface will grant a discount to the vis cost of actions the wearer performs with casting wands.
+ * The amount returned is the percentage by which the cost is discounted. There is a built-int max discount of 50%, but
+ * individual items really shouldn't have a discount more than 5%
+ */
+public interface IVisDiscounter {
+
+ int getVisDiscount();
+
+}
diff --git a/common/thaumcraft/api/IVisRepairable.java b/common/thaumcraft/api/IVisRepairable.java
new file mode 100644
index 0000000..6606095
--- /dev/null
+++ b/common/thaumcraft/api/IVisRepairable.java
@@ -0,0 +1,27 @@
+package thaumcraft.api;
+
+import net.minecraft.entity.Entity;
+import net.minecraft.item.ItemStack;
+
+
+/**
+ * @author Azanor
+ * Items and tools with this interface can receive the Repair enchantment.
+ * Armor, weapons and tools are handled automatically.
+ * Usually 1 vis equals 1 point of durability every 2 seconds (1 second for repair II)
+ * Repair enchant values over II also grants a reduction in speed, but at a much
+ * reduced rate (about 2 ticks per rating over II)
+ * Some sample code:
+ *
+ * public void doRepair(ItemStack is, Entity e) {
+ * if (AuraManager.decreaseClosestAura(e.worldObj,e.posX, e.posY, e.posZ, 1)) {
+ * is.damageItem(-1,(EntityLiving) e);
+ * }
+ * }
+ *
+ */
+public interface IVisRepairable {
+
+ void doRepair(ItemStack stack, Entity e);
+
+}
diff --git a/common/thaumcraft/api/ItemApi.java b/common/thaumcraft/api/ItemApi.java
new file mode 100644
index 0000000..cbb8b86
--- /dev/null
+++ b/common/thaumcraft/api/ItemApi.java
@@ -0,0 +1,58 @@
+package thaumcraft.api;
+
+import net.minecraft.block.Block;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+import cpw.mods.fml.common.FMLLog;
+
+/**
+ * @author Azanor
+ *
+ * This is used to gain access to the items in my mod.
+ * I only give some examples and it will probably still
+ * require a bit of work for you to get hold of everything you need.
+ *
+ */
+public class ItemApi {
+
+ public static ItemStack getItem(String itemString, int meta) {
+ ItemStack item = null;
+
+ try {
+ String itemClass = "thaumcraft.common.Config";
+ Object obj = Class.forName(itemClass).getField(itemString).get(null);
+ if (obj instanceof Item) {
+ item = new ItemStack((Item) obj,1,meta);
+ } else if (obj instanceof Block) {
+ item = new ItemStack((Block) obj,1,meta);
+ } else if (obj instanceof ItemStack) {
+ item = (ItemStack) obj;
+ }
+ } catch (Exception ex) {
+ FMLLog.warning("[Thaumcraft] Could not retrieve item or block identified by: " + itemString);
+ }
+
+ return item;
+ }
+
+ /**
+ *
+ * Some examples
+ *
+ * Casting Wands:
+ * itemWandCastingApprentice, itemWandCastingAdept, itemWandCastingMage
+ *
+ * Elemental Wands:
+ * itemWandFire, itemWandLightning, itemWandFrost, itemWandTrade, itemWandExcavation, itemHellrod
+ *
+ * Resources:
+ * itemEssence, itemWispEssence, itemResource, itemShard, itemNugget,
+ * itemNuggetChicken, itemNuggetBeef, itemNuggetPork, itemTripleMeatTreat,
+ * blockWooden, blockMarker
+ *
+ * Research:
+ * itemResearchNotes, itemInkwell, itemThaumonomicon
+ *
+ */
+
+}
diff --git a/common/thaumcraft/api/ObjectTags.java b/common/thaumcraft/api/ObjectTags.java
new file mode 100644
index 0000000..da7c8a7
--- /dev/null
+++ b/common/thaumcraft/api/ObjectTags.java
@@ -0,0 +1,171 @@
+package thaumcraft.api;
+
+import java.io.Serializable;
+import java.util.HashMap;
+import java.util.Map;
+
+import net.minecraft.item.ItemStack;
+
+public class ObjectTags implements Serializable {
+
+ public Map tags = new HashMap();//aspects associated with this object
+
+
+ /**
+ * this creates a new aspect list with preloaded values based off the aspects of the given item.
+ * @param id the item/block id of an existing item
+ * @param meta the damage value of an existing item
+ */
+ public ObjectTags(int id, int meta) {
+ ObjectTags temp = ThaumcraftApiHelper.getObjectTags(new ItemStack(id,1,meta));
+ if (temp!=null)
+ for (EnumTag tag:temp.getAspects()) {
+ add(tag,temp.getAmount(tag));
+ }
+ }
+
+ public ObjectTags() {
+ }
+
+ /**
+ * @return the amount of different aspects in this collection
+ */
+ public int size() {
+ return tags.size();
+ }
+
+ /**
+ * @return an array of all the aspects in this collection
+ */
+ public EnumTag[] getAspects() {
+ EnumTag[] q = new EnumTag[1];
+ return tags.keySet().toArray(q);
+ }
+
+ /**
+ * @return an array of all the aspects in this collection sorted by name
+ */
+ public EnumTag[] getAspectsSorted() {
+ EnumTag[] out = tags.keySet().toArray(new EnumTag[1]);
+ boolean change=false;
+ do {
+ change=false;
+ for(int a=0;a0) {
+ out[a] = e2;
+ out[a+1] = e1;
+ change = true;
+ break;
+ }
+ }
+ } while (change==true);
+ return out;
+ }
+
+ /**
+ * @return an array of all the aspects in this collection sorted by name
+ */
+ public EnumTag[] getAspectsSortedAmount() {
+ EnumTag[] out = tags.keySet().toArray(new EnumTag[1]);
+ boolean change=false;
+ do {
+ change=false;
+ for(int a=0;a0 && e2>0 && e2>e1) {
+ EnumTag ea = out[a];
+ EnumTag eb = out[a+1];
+ out[a] = eb;
+ out[a+1] = ea;
+ change = true;
+ break;
+ }
+ }
+ } while (change==true);
+ return out;
+ }
+
+ /**
+ * @param key
+ * @return the amount associated with the given aspect in this collection
+ */
+ public int getAmount(EnumTag key) {
+ return tags.get(key)==null?0:tags.get(key);
+ }
+
+ /**
+ * Reduces the amount of an aspect in this collection by the given amount.
+ * If reduced below 0 the aspect will be removed completely.
+ * @param key
+ * @param amount
+ * @return
+ */
+ public boolean reduceAmount(EnumTag key, int amount) {
+ if (getAmount(key)>=amount) {
+ int am = getAmount(key)-amount;
+ if (am<=0) tags.remove(key); else
+ tags.put(key, am);
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * Reduces the amount of an aspect in this collection by the given amount.
+ * If reduced below 0 the aspect will be removed completely.
+ * If the aspect does not exist then a negative value will be added.
+ * Only used by aura internals for flux management.
+ * @param key
+ * @param amount
+ * @return
+ */
+ public ObjectTags remove(EnumTag key, int amount) {
+ if (getAmount(key)>=amount) {
+ int am = getAmount(key)-amount;
+ if (am<=0) tags.remove(key); else
+ this.tags.put(key, am);
+ } else if (getAmount(key)==0) {
+ this.tags.put(key, -amount);
+ }
+ return this;
+ }
+
+ /**
+ * Adds this aspect and amount to the collection.
+ * If the aspect exists then its value will be increased by the given amount.
+ * @param aspect
+ * @param amount
+ * @return
+ */
+ public ObjectTags add(EnumTag aspect, int amount) {
+ if (this.tags.containsKey(aspect)) {
+ int oldamount = this.tags.get(aspect);
+ amount+=oldamount;
+ }
+ this.tags.put( aspect, amount );
+ return this;
+ }
+
+
+ /**
+ * Adds this aspect and amount to the collection.
+ * If the aspect exists then only the highest of the old or new amount will be used.
+ * @param aspect
+ * @param amount
+ * @return
+ */
+ public ObjectTags merge(EnumTag aspect, int amount) {
+ if (this.tags.containsKey(aspect)) {
+ int oldamount = this.tags.get(aspect);
+ if (amount portableHoleBlackList = new ArrayList();
+
+
+ //RESEARCH/////////////////////////////////////////
+ public static Document researchDoc = null;
+ public static ArrayList apiResearchFiles = new ArrayList();
+ public static ArrayList scanEventhandlers = new ArrayList();
+
+ /**
+ * Used to add your own xml files that the research system will check of recipes and descriptions of custom research
+ * @param resourceLoc The xml file. For example The default file used by TC is
+ * "/thaumcraft/resources/research.xml"
+ */
+ public static void registerResearchXML(String resourceLoc) {
+ if (!apiResearchFiles.contains(resourceLoc)) apiResearchFiles.add(resourceLoc);
+ }
+
+ public static void registerScanEventhandler(IScanEventHandler scanEventHandler) {
+ scanEventhandlers.add(scanEventHandler);
+ }
+
+ //RECIPES/////////////////////////////////////////
+ private static ArrayList crucibleRecipes = new ArrayList();
+ private static List craftingRecipes = new ArrayList();
+ private static HashMap smeltingBonus = new HashMap();
+ private static ArrayList smeltingBonusExlusion = new ArrayList();
+
+ /**
+ * This method is used to determine what bonus items are generated when the infernal furnace smelts items
+ * @param in The result (not input) of the smelting operation. e.g. new ItemStack(ingotGold)
+ * @param out The bonus item that can be produced from the smelting operation e.g. new ItemStack(nuggetGold,0,0).
+ * Stacksize should be 0 unless you want to guarantee that at least 1 item is always produced.
+ */
+ public static void addSmeltingBonus(ItemStack in, ItemStack out) {
+ smeltingBonus.put(
+ Arrays.asList(in.itemID,in.getItemDamage()),
+ new ItemStack(out.itemID,0,out.getItemDamage()));
+ }
+
+ /**
+ * Returns the bonus item produced from a smelting operation in the infernal furnace
+ * @param in The result of the smelting operation. e.g. new ItemStack(ingotGold)
+ * @return the The bonus item that can be produced
+ */
+ public static ItemStack getSmeltingBonus(ItemStack in) {
+ return smeltingBonus.get(Arrays.asList(in.itemID,in.getItemDamage()));
+ }
+
+ /**
+ * Excludes specific items from producing bonus items when they are smelted in the infernal furnace, even
+ * if their smelt result would normally produce a bonus item.
+ * @param in The item to be smelted that should never produce a bonus item (e.g. the various macerated dusts form IC2)
+ * Even though they produce gold, iron, etc. ingots, they should NOT produce bonus nuggets as well.
+ */
+ public static void addSmeltingBonusExclusion(ItemStack in) {
+ smeltingBonusExlusion.add(Arrays.asList(in.itemID,in.getItemDamage()));
+ }
+
+ /**
+ * Sees if an item is allowed to produce bonus items when smelted in the infernal furnace
+ * @param in The item you wish to check
+ * @return true or false
+ */
+ public static boolean isSmeltingBonusExluded(ItemStack in) {
+ return smeltingBonusExlusion.contains(Arrays.asList(in.itemID,in.getItemDamage()));
+ }
+
+ public static List getCraftingRecipes() {
+ return craftingRecipes;
+ }
+
+ /**
+ * NOTE:
+ * All arcane and infusion crafting recipes are NBT sensitive.
+ * Simply add as much nbt data to the crafting ingredient itemstacks as you wish
+ * to match with the actual input items. For example this recipe will turn a warded
+ * jar filled with crystal essentia into a stack of diamonds:
+ *
+ * ItemStack is = new ItemStack(itemJarFilled);
+ * is.setTagInfo("tag", new NBTTagByte("tag", (byte) EnumTag.CRYSTAL.id));
+ * is.setTagInfo("amount", new NBTTagByte("amount", (byte) 64));
+ * ThaumcraftApi.addShapelessArcaneCraftingRecipe("THEJARISNOWDIAMONDS", 50,
+ * new ItemStack(Item.diamond,64,0), new Object[] { is });
+ *
+ * If no tag was added for "amount" then the jar would simply have had to contain any
+ * amount of crystal essentia.
+ */
+
+ /**
+ * @param key the research key required for this recipe to work. Leave blank if it will work without research
+ * @param cost the vis cost
+ * @param par1ItemStack the recipe output
+ * @param par2ArrayOfObj the recipe. Format is exactly the same as vanilla recipes
+ */
+ public static void addArcaneCraftingRecipe(String key, int cost, ItemStack par1ItemStack, Object ... par2ArrayOfObj)
+ {
+ String var3 = "";
+ int var4 = 0;
+ int var5 = 0;
+ int var6 = 0;
+ int var9;
+
+ if (par2ArrayOfObj[var4] instanceof String[])
+ {
+ String[] var7 = (String[])((String[])par2ArrayOfObj[var4++]);
+ String[] var8 = var7;
+ var9 = var7.length;
+
+ for (int var10 = 0; var10 < var9; ++var10)
+ {
+ String var11 = var8[var10];
+ ++var6;
+ var5 = var11.length();
+ var3 = var3 + var11;
+ }
+ }
+ else
+ {
+ while (par2ArrayOfObj[var4] instanceof String)
+ {
+ String var13 = (String)par2ArrayOfObj[var4++];
+ ++var6;
+ var5 = var13.length();
+ var3 = var3 + var13;
+ }
+ }
+
+ HashMap var14;
+
+ for (var14 = new HashMap(); var4 < par2ArrayOfObj.length; var4 += 2)
+ {
+ Character var16 = (Character)par2ArrayOfObj[var4];
+ ItemStack var17 = null;
+
+ if (par2ArrayOfObj[var4 + 1] instanceof Item)
+ {
+ var17 = new ItemStack((Item)par2ArrayOfObj[var4 + 1]);
+ }
+ else if (par2ArrayOfObj[var4 + 1] instanceof Block)
+ {
+ var17 = new ItemStack((Block)par2ArrayOfObj[var4 + 1], 1, -1);
+ }
+ else if (par2ArrayOfObj[var4 + 1] instanceof ItemStack)
+ {
+ var17 = (ItemStack)par2ArrayOfObj[var4 + 1];
+ }
+
+ var14.put(var16, var17);
+ }
+
+ ItemStack[] var15 = new ItemStack[var5 * var6];
+
+ for (var9 = 0; var9 < var5 * var6; ++var9)
+ {
+ char var18 = var3.charAt(var9);
+
+ if (var14.containsKey(Character.valueOf(var18)))
+ {
+ var15[var9] = ((ItemStack)var14.get(Character.valueOf(var18))).copy();
+ }
+ else
+ {
+ var15[var9] = null;
+ }
+ }
+
+ craftingRecipes.add(new ShapedArcaneCraftingRecipes(key, var5, var6, var15, par1ItemStack,cost));
+ }
+
+ /**
+ * @param key the research key required for this recipe to work. Leave blank if it will work without research
+ * @param recipeKey a string value of the key used in your research.xml for this recipe to display in the thaumonomicon
+ * @param cost the vis cost
+ * @param par1ItemStack the recipe output
+ * @param par2ArrayOfObj the recipe. Format is exactly the same as vanilla recipes
+ */
+ public static void addArcaneCraftingRecipe(String key, String recipeKey, int cost, ItemStack par1ItemStack, Object ... par2ArrayOfObj) {
+ addArcaneCraftingRecipe(key,cost,par1ItemStack,par2ArrayOfObj);
+ ResearchList.craftingRecipesForResearch.put(recipeKey, Arrays.asList(getCraftingRecipes().size()-1));
+ }
+
+ /**
+ * @param key the research key required for this recipe to work. Leave blank if it will work without research
+ * @param cost the vis cost
+ * @param par1ItemStack the recipe output
+ * @param par2ArrayOfObj the recipe. Format is exactly the same as vanilla shapeless recipes
+ */
+ public static void addShapelessArcaneCraftingRecipe(String key, int cost, ItemStack par1ItemStack, Object ... par2ArrayOfObj)
+ {
+ ArrayList var3 = new ArrayList();
+ Object[] var4 = par2ArrayOfObj;
+ int var5 = par2ArrayOfObj.length;
+
+ for (int var6 = 0; var6 < var5; ++var6)
+ {
+ Object var7 = var4[var6];
+
+ if (var7 instanceof ItemStack)
+ {
+ var3.add(((ItemStack)var7).copy());
+ }
+ else if (var7 instanceof Item)
+ {
+ var3.add(new ItemStack((Item)var7));
+ }
+ else
+ {
+ if (!(var7 instanceof Block))
+ {
+ throw new RuntimeException("Invalid shapeless recipe!");
+ }
+
+ var3.add(new ItemStack((Block)var7));
+ }
+ }
+
+ craftingRecipes.add(new ShapelessArcaneCraftingRecipes(key, par1ItemStack, var3, cost));
+ }
+
+ /**
+ * @param key the research key required for this recipe to work. Leave blank if it will work without research
+ * @param recipeKey a string value of the key used in your research.xml for this recipe to display in the thaumonomicon
+ * @param cost the vis cost
+ * @param par1ItemStack the recipe output
+ * @param par2ArrayOfObj the recipe. Format is exactly the same as vanilla shapeless recipes
+ */
+ public static void addShapelessArcaneCraftingRecipe(String key, String recipeKey, int cost, ItemStack par1ItemStack, Object ... par2ArrayOfObj) {
+ addShapelessArcaneCraftingRecipe(key,cost,par1ItemStack,par2ArrayOfObj);
+ ResearchList.craftingRecipesForResearch.put(recipeKey, Arrays.asList(getCraftingRecipes().size()-1));
+ }
+
+ /**
+ * @param key the research key required for this recipe to work. Leave blank if it will work without research
+ * @param cost the vis cost
+ * @param tags ObjectTags list of required aspects and their amounts. No more than 5 aspects should be used in a recipe.
+ * @param par1ItemStack the recipe output
+ * @param par2ArrayOfObj the recipe. Format is exactly the same as vanilla recipes
+ */
+ public static void addInfusionCraftingRecipe(String key, int cost, ObjectTags tags, ItemStack par1ItemStack, Object ... par2ArrayOfObj)
+ {
+ String var3 = "";
+ int var4 = 0;
+ int var5 = 0;
+ int var6 = 0;
+ int var9;
+
+ if (par2ArrayOfObj[var4] instanceof String[])
+ {
+ String[] var7 = (String[])((String[])par2ArrayOfObj[var4++]);
+ String[] var8 = var7;
+ var9 = var7.length;
+
+ for (int var10 = 0; var10 < var9; ++var10)
+ {
+ String var11 = var8[var10];
+ ++var6;
+ var5 = var11.length();
+ var3 = var3 + var11;
+ }
+ }
+ else
+ {
+ while (par2ArrayOfObj[var4] instanceof String)
+ {
+ String var13 = (String)par2ArrayOfObj[var4++];
+ ++var6;
+ var5 = var13.length();
+ var3 = var3 + var13;
+ }
+ }
+
+ HashMap var14;
+
+ for (var14 = new HashMap(); var4 < par2ArrayOfObj.length; var4 += 2)
+ {
+ Character var16 = (Character)par2ArrayOfObj[var4];
+ ItemStack var17 = null;
+
+ if (par2ArrayOfObj[var4 + 1] instanceof Item)
+ {
+ var17 = new ItemStack((Item)par2ArrayOfObj[var4 + 1]);
+ }
+ else if (par2ArrayOfObj[var4 + 1] instanceof Block)
+ {
+ var17 = new ItemStack((Block)par2ArrayOfObj[var4 + 1], 1, -1);
+ }
+ else if (par2ArrayOfObj[var4 + 1] instanceof ItemStack)
+ {
+ var17 = (ItemStack)par2ArrayOfObj[var4 + 1];
+ }
+
+ var14.put(var16, var17);
+ }
+
+ ItemStack[] var15 = new ItemStack[var5 * var6];
+
+ for (var9 = 0; var9 < var5 * var6; ++var9)
+ {
+ char var18 = var3.charAt(var9);
+
+ if (var14.containsKey(Character.valueOf(var18)))
+ {
+ var15[var9] = ((ItemStack)var14.get(Character.valueOf(var18))).copy();
+ }
+ else
+ {
+ var15[var9] = null;
+ }
+ }
+
+ craftingRecipes.add(new ShapedInfusionCraftingRecipes(key, var5, var6, var15, par1ItemStack,cost,tags));
+ }
+
+ /**
+ * Recipe is NBT sensitive
+ * @param key the research key required for this recipe to work. Leave blank if it will work without research
+ * @param recipeKey a string value of the key used in your research.xml for this recipe to display in the thaumonomicon
+ * @param cost the vis cost
+ * @param tags ObjectTags list of required aspects and their amounts. No more than 5 aspects should be used in a recipe.
+ * @param par1ItemStack the recipe output
+ * @param par2ArrayOfObj the recipe. Format is exactly the same as vanilla recipes
+ */
+ public static void addInfusionCraftingRecipe(String key, String recipeKey, int cost, ObjectTags tags, ItemStack par1ItemStack, Object ... par2ArrayOfObj) {
+ addInfusionCraftingRecipe(key, cost, tags, par1ItemStack, par2ArrayOfObj);
+ ResearchList.craftingRecipesForResearch.put(recipeKey, Arrays.asList(getCraftingRecipes().size()-1));
+ }
+
+ /**
+ * Recipe is NBT sensitive
+ * @param key the research key required for this recipe to work. Leave blank if it will work without research
+ * @param cost the vis cost
+ * @param tags ObjectTags list of required aspects and their amounts. No more than 5 aspects should be used in a recipe.
+ * @param par1ItemStack the recipe output
+ * @param par2ArrayOfObj the recipe. Format is exactly the same as vanilla shapeless recipes
+ */
+ public static void addShapelessInfusionCraftingRecipe(String key, int cost, ObjectTags tags, ItemStack par1ItemStack, Object ... par2ArrayOfObj)
+ {
+ ArrayList var3 = new ArrayList();
+ Object[] var4 = par2ArrayOfObj;
+ int var5 = par2ArrayOfObj.length;
+
+ for (int var6 = 0; var6 < var5; ++var6)
+ {
+ Object var7 = var4[var6];
+
+ if (var7 instanceof ItemStack)
+ {
+ var3.add(((ItemStack)var7).copy());
+ }
+ else if (var7 instanceof Item)
+ {
+ var3.add(new ItemStack((Item)var7));
+ }
+ else
+ {
+ if (!(var7 instanceof Block))
+ {
+ throw new RuntimeException("Invalid shapeless recipe!");
+ }
+
+ var3.add(new ItemStack((Block)var7));
+ }
+ }
+
+ craftingRecipes.add(new ShapelessInfusionCraftingRecipes(key, par1ItemStack, var3, cost,tags));
+ }
+
+ /**
+ * Recipe is NBT sensitive
+ * @param key the research key required for this recipe to work. Leave blank if it will work without research
+ * @param recipeKey a string value of the key used in your research.xml for this recipe to display in the thaumonomicon
+ * @param cost the vis cost
+ * @param tags ObjectTags list of required aspects and their amounts. No more than 5 aspects should be used in a recipe.
+ * @param par1ItemStack the recipe output
+ * @param par2ArrayOfObj the recipe. Format is exactly the same as vanilla shapeless recipes
+ */
+ public static void addShapelessInfusionCraftingRecipe(String key, String recipeKey, int cost, ObjectTags tags, ItemStack par1ItemStack, Object ... par2ArrayOfObj) {
+ addShapelessInfusionCraftingRecipe(key, cost, tags, par1ItemStack, par2ArrayOfObj);
+ ResearchList.craftingRecipesForResearch.put(recipeKey, Arrays.asList(getCraftingRecipes().size()-1));
+ }
+
+ /**
+ * @param key the research key required for this recipe to work. Unlike the arcane crafting and infusion crafting
+ * recipes a recipe key is automatically created using the same key.
+ * See method below if the research and recipes keys do not match
+ * @param result the output result
+ * @param cost the vis cost
+ * @param tags the aspects required to craft this
+ */
+ public static void addCrucibleRecipe(String key, ItemStack result, int cost, ObjectTags tags) {
+ getCrucibleRecipes().add(new RecipeCrucible(key, result, tags, cost));
+ }
+
+ /**
+ * @param key the research key required for this recipe to work.
+ * @param recipeKey a string value of the key used in your research.xml for this recipe to display in the thaumonomicon
+ * @param result the output result
+ * @param cost the vis cost
+ * @param tags the aspects required to craft this
+ */
+ public static void addCrucibleRecipe(String key, String recipeKey, ItemStack result, int cost, ObjectTags tags) {
+ getCrucibleRecipes().add(new RecipeCrucible(key, recipeKey, result, tags, cost));
+ }
+
+ /**
+ * @param key the recipe key (NOT research key)
+ * @return the recipe
+ */
+ public static RecipeCrucible getCrucibleRecipe(String key) {
+ for (Object r:getCrucibleRecipes()) {
+ if (r instanceof RecipeCrucible) {
+ if (((RecipeCrucible)r).key.equals(key))
+ return (RecipeCrucible)r;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * @param stack the recipe result
+ * @return the recipe
+ */
+ public static RecipeCrucible getCrucibleRecipe(ItemStack stack) {
+ for (Object r:getCrucibleRecipes()) {
+ if (r instanceof RecipeCrucible) {
+ if (((RecipeCrucible)r).recipeOutput.isItemEqual(stack))
+ return (RecipeCrucible)r;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * @param stack the item
+ * @return the thaumcraft recipe key that produces that item. Used by the thaumonomicon drilldown feature.
+ */
+ public static String getCraftingRecipeKey(ItemStack stack) {
+ for (Object r:getCraftingRecipes()) {
+ if (r instanceof IArcaneRecipe) {
+ if (ThaumcraftApiHelper.areItemsEqual(stack,((IArcaneRecipe)r).getRecipeOutput()))
+ return ((IArcaneRecipe)r).getKey();
+ }
+ if (r instanceof IInfusionRecipe) {
+ if (ThaumcraftApiHelper.areItemsEqual(stack,((IInfusionRecipe)r).getRecipeOutput()))
+ return ((IInfusionRecipe)r).getKey();
+ }
+ }
+ return "";
+ }
+
+ //TAGS////////////////////////////////////////
+
+ public static Map objectTags = new HashMap();
+
+ /**
+ * Checks to see if the passed item/block already has aspects associated with it.
+ * @param id
+ * @param meta
+ * @return
+ */
+ public static boolean exists(int id, int meta) {
+ ObjectTags tmp = ThaumcraftApi.objectTags.get(Arrays.asList(id,meta));
+ if (tmp==null) {
+ tmp = ThaumcraftApi.objectTags.get(Arrays.asList(id,-1));
+ if (meta==-1 && tmp==null) {
+ int index=0;
+ do {
+ tmp = ThaumcraftApi.objectTags.get(Arrays.asList(id,index));
+ index++;
+ } while (index<16 && tmp==null);
+ }
+ if (tmp==null) return false;
+ }
+
+ return true;
+ }
+
+ /**
+ * Used to assign apsects to the given item/block. Here is an example of the declaration for cobblestone:
+ * ThaumcraftApi.registerObjectTag(Block.cobblestone.blockID, -1, (new ObjectTags()).add(EnumTag.ROCK, 1).add(EnumTag.DESTRUCTION, 1));
+ * @param id
+ * @param meta pass -1 if all damage values of this item/block should have the same aspects
+ * @param aspects A ObjectTags object of the associated aspects
+ */
+ public static void registerObjectTag(int id, int meta, ObjectTags aspects) {
+ aspects = ThaumcraftApiHelper.cullTags(aspects);
+ objectTags.put(Arrays.asList(id,meta), aspects);
+ }
+
+ /**
+ * Used to assign aspects to the given item/block.
+ * Attempts to automatically generate aspect tags by checking registered recipes.
+ * Here is an example of the declaration for pistons:
+ * ThaumcraftApi.registerComplexObjectTag(Block.pistonBase.blockID, 0, (new ObjectTags()).add(EnumTag.MECHANISM, 2).add(EnumTag.MOTION, 4));
+ * @param id
+ * @param meta pass -1 if all damage values of this item/block should have the same aspects
+ * @param aspects A ObjectTags object of the associated aspects
+ */
+ public static void registerComplexObjectTag(int id, int meta, ObjectTags aspects ) {
+ if (!exists(id,meta)) {
+ ObjectTags tmp = ThaumcraftApiHelper.generateTags(id, meta);
+ if (tmp != null && tmp.size()>0) {
+ for(EnumTag tag:tmp.getAspects()) {
+ aspects.add(tag, tmp.getAmount(tag));
+ }
+ }
+ registerObjectTag(id,meta,aspects);
+ } else {
+ ObjectTags tmp = ThaumcraftApiHelper.getObjectTags(new ItemStack(id,1,meta));
+ for(EnumTag tag:aspects.getAspects()) {
+ tmp.merge(tag, tmp.getAmount(tag));
+ }
+ registerObjectTag(id,meta,tmp);
+ }
+ }
+
+ public static ArrayList getCrucibleRecipes() {
+ return crucibleRecipes;
+ }
+
+
+ //AURAS//////////////////////////////////////////////////
+
+ private static Method addFluxToClosest;
+ /**
+ * Adds flux to the node closest to the given location
+ * @param world
+ * @param x
+ * @param y
+ * @param z
+ * @param tags ObjectTags list of all the EnumTags and amounts of flux to add.
+ */
+ public static void addFluxToClosest(World world, float x, float y, float z, ObjectTags tags) {
+ try {
+ if(addFluxToClosest == null) {
+ Class fake = Class.forName("thaumcraft.common.aura.AuraManager");
+ addFluxToClosest = fake.getMethod("addFluxToClosest", World.class, float.class, float.class, float.class, ObjectTags.class);
+ }
+ addFluxToClosest.invoke(null, world,x,y,z,tags);
+ } catch(Exception ex) {
+ FMLLog.warning("[Thaumcraft API] Could not invoke thaumcraft.common.aura.AuraManager method addFluxToClosest");
+ }
+ }
+
+ private static Method decreaseClosestAura;
+ /**
+ * Removes an amount of vis from the aura node closest to the given location
+ * @param world
+ * @param x
+ * @param y
+ * @param z
+ * @param amount The amount of vis to remove
+ * @param doit If set to false it will merely perform a check to see if there is enough vis to perform the operation.
+ * If set to true it will actually decrease the vis as well.
+ * @return It will return true if there was enough vis to perform this operation
+ */
+ public static boolean decreaseClosestAura(World world, double x, double y, double z, int amount, boolean doit) {
+ boolean ret=false;
+ try {
+ if(decreaseClosestAura == null) {
+ Class fake = Class.forName("thaumcraft.common.aura.AuraManager");
+ decreaseClosestAura = fake.getMethod("decreaseClosestAura", World.class, double.class, double.class, double.class, int.class, boolean.class);
+ }
+ ret = (Boolean) decreaseClosestAura.invoke(null, world,x,y,z,amount,doit);
+ } catch(Exception ex) {
+ FMLLog.warning("[Thaumcraft API] Could not invoke thaumcraft.common.aura.AuraManager method decreaseClosestAura");
+ }
+ return ret;
+ }
+
+ private static Method increaseLowestAura;
+ /**
+ * Increases the lowest aura near the given location.
+ * @param world
+ * @param x
+ * @param y
+ * @param z
+ * @param amount
+ * @return it will return true if the operation was a success
+ */
+ public static boolean increaseLowestAura(World world, double x, double y, double z, int amount) {
+ boolean ret=false;
+ try {
+ if(increaseLowestAura == null) {
+ Class fake = Class.forName("thaumcraft.common.aura.AuraManager");
+ increaseLowestAura = fake.getMethod("increaseLowestAura", World.class, double.class, double.class, double.class, int.class);
+ }
+ ret = (Boolean) increaseLowestAura.invoke(null, world,x,y,z,amount);
+ } catch(Exception ex) {
+ FMLLog.warning("[Thaumcraft API] Could not invoke thaumcraft.common.aura.AuraManager method increaseLowestAura");
+ }
+ return ret;
+ }
+
+ private static Method getClosestAuraWithinRange;
+ /**
+ * Gets the id of the closest aura node within range of the given coordinates. Only checks loaded chunks
+ * @param world
+ * @param x
+ * @param y
+ * @param z
+ * @param range distance (in blocks) to check
+ * @return returns -1 if no aura is found, otherwise returns the aura node id.
+ */
+ public static int getClosestAuraWithinRange(World world, double x, double y, double z, double range) {
+ int ret=-1;
+ try {
+ if(getClosestAuraWithinRange == null) {
+ Class fake = Class.forName("thaumcraft.common.aura.AuraManager");
+ getClosestAuraWithinRange = fake.getMethod("getClosestAuraWithinRange", World.class, double.class, double.class, double.class, double.class);
+ }
+ ret = (Integer) getClosestAuraWithinRange.invoke(null, world,x,y,z,range);
+ } catch(Exception ex) {
+ FMLLog.warning("[Thaumcraft API] Could not invoke thaumcraft.common.aura.AuraManager method getClosestAuraWithinRange");
+ }
+ return ret;
+ }
+
+ private static Method getNodeCopy;
+ /**
+ * Gets an copy of the AuraNode object for the given node
+ * @param nodeId the int key of the aura node
+ * @return returns a COPY of the auranode object, not the object itself.
+ * Auranode values should only be altered via queNodeChanges - NEVER directly
+ */
+ public static AuraNode getNodeCopy(int nodeId) {
+ AuraNode node = null;
+ try {
+ if(getNodeCopy == null) {
+ Class fake = Class.forName("thaumcraft.common.aura.AuraManager");
+ getNodeCopy = fake.getMethod("getNodeCopy", int.class);
+ }
+ node = (AuraNode) getNodeCopy.invoke(null, nodeId);
+ } catch(Exception ex) {
+ FMLLog.warning("[Thaumcraft API] Could not invoke thaumcraft.common.aura.AuraManager method getNodeCopy");
+ }
+ return node;
+ }
+
+ private static Method queueNodeChanges;
+ /**
+ * This method is used to alter the values of aura nodes. The changes specified are placed in a queue for processing by
+ * the aura thread.
+ *
+ * For example:
+ * queNodeChanges(55,8,0,false,null,0,0,0); //will increase node 55's current vis by 8
+ * queNodeChanges(55,0,0,false,new ObjectTags().remove(EnumTag.FIRE,3),0,0,0); //will reduce node 55's FIRE flux levels by 3
+ * queNodeChanges(55,11,11,false,null,0,.5f,0); //will increase node 55's current and base level by 11 and increase its y pos by .5f
+ *
+ * @param nodeId
+ * @param levelMod the amount by which the auras vis level should be changed (positive or negative)
+ * @param baseMod the amount by which the auras max vis level should be changed (positive or negative)
+ * @param toggleLock if set to true the nodes lock state will toggle to its opposite value. Currently doesn't do much
+ * @param flx a ObjectTags collection of the all the flux to add (if positive) or remove (if negative) to the node
+ * @param x by how much the nodes x position should be altered. Should usually be less than 1
+ * @param y by how much the nodes y position should be altered. Should usually be less than 1
+ * @param z by how much the nodes z position should be altered. Should usually be less than 1
+ */
+ public static void queueNodeChanges(int nodeId, int levelMod, int baseMod, boolean toggleLock, ObjectTags flux,
+ float x,float y,float z) {
+ try {
+ if(queueNodeChanges == null) {
+ Class fake = Class.forName("thaumcraft.common.aura.AuraManager");
+ queueNodeChanges = fake.getMethod("queueNodeChanges",
+ int.class, int.class, int.class, boolean.class, ObjectTags.class, float.class, float.class, float.class);
+ }
+ queueNodeChanges.invoke(null, nodeId, levelMod, baseMod, toggleLock, flux, x, y, z);
+ } catch(Exception ex) {
+ FMLLog.warning("[Thaumcraft API] Could not invoke thaumcraft.common.aura.AuraManager method queueNodeChanges");
+ }
+ }
+
+ //BIOMES//////////////////////////////////////////////////
+ @Deprecated
+ public static HashMap biomeInfo = new HashMap();
+
+ /**
+ * Registers custom biomes with thaumcraft
+ * @Deprecated I will be switching over the the forge BiomeDictionary system in the future so any mods that add biomes should just make sure they are tagged correctly
+ * @param biomeID The id of the biome
+ * @param visLevel The average vis level of nodes generated in this biome
+ * @param tag The EnumTag associated with this biome (used to determine infused ore spawns among other things)
+ * @param greatwood Does this biome support greatwood trees
+ * @param silverwood Does this biome support silverwood trees
+ */
+ @Deprecated
+ public static void registerBiomeInfo(int biomeID, int visLevel, EnumTag tag, boolean greatwood, boolean silverwood) {
+ biomeInfo.put(biomeID, Arrays.asList(visLevel, tag, greatwood, silverwood));
+ }
+
+ @Deprecated
+ public static int getBiomeAura(int biomeId) {
+ try {
+ return (Integer) biomeInfo.get(biomeId).get(0);
+ } catch (Exception e) {}
+ return 200;
+ }
+
+ @Deprecated
+ public static EnumTag getBiomeTag(int biomeId) {
+ try {
+ return (EnumTag) biomeInfo.get(biomeId).get(1);
+ } catch (Exception e) {}
+ return EnumTag.UNKNOWN;
+ }
+
+ @Deprecated
+ public static boolean getBiomeSupportsGreatwood(int biomeId) {
+ try {
+ return (Boolean) biomeInfo.get(biomeId).get(2);
+ } catch (Exception e) {}
+ return false;
+ }
+
+ @Deprecated
+ public static boolean getBiomeSupportsSilverwood(int biomeId) {
+ try {
+ return (Boolean) biomeInfo.get(biomeId).get(3);
+ } catch (Exception e) {}
+ return false;
+ }
+
+ //CROPS //////////////////////////////////////////////////////////////////////////////////////////
+
+ /**
+ * To define mod crops you need to use FMLInterModComms in your @Mod.Init method.
+ * There are two 'types' of crops you can add. Standard crops and clickable crops.
+ *
+ * Standard crops work like normal vanilla crops - they grow until a certain metadata
+ * value is reached and you harvest them by destroying the block and collecting the blocks.
+ * You need to create and ItemStack that tells the golem what block id and metadata represents
+ * the crop when fully grown.
+ * Example for vanilla wheat:
+ * FMLInterModComms.sendMessage("Thaumcraft", "harvestStandardCrop", new ItemStack(Block.crops,1,7));
+ *
+ * Clickable crops are crops that you right click to gather their bounty instead of destroying them.
+ * As for standard crops, you need to create and ItemStack that tells the golem what block id
+ * and metadata represents the crop when fully grown. The golem will trigger the blocks onBlockActivated method.
+ * Example (this will technically do nothing since clicking wheat does nothing, but you get the idea):
+ * FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(Block.crops,1,7));
+ */
+
+ @Deprecated
+ public static HashMap crops = new HashMap();
+
+ /**
+ * This is used to add mod crops to the list of crops harvested by golems
+ * that do not use the standard crop growth pattern
+ * (i.e. being an instance of BlockCrops and being fully grown at meta 7).
+ * Only seeds implementing IPlantable will be replanted.
+ * @param blockID the block id of the crop
+ * @param grownMeta the metadata value when the crop is considered fully grown.
+ * The block with this id and meta will be the one the golem breaks.
+ */
+ @Deprecated
+ public static void addHarvestableCrop(int blockID, int grownMeta) {
+ crops.put(blockID, grownMeta);
+ }
+
+}
diff --git a/common/thaumcraft/api/ThaumcraftApiHelper.java b/common/thaumcraft/api/ThaumcraftApiHelper.java
new file mode 100644
index 0000000..aabddc8
--- /dev/null
+++ b/common/thaumcraft/api/ThaumcraftApiHelper.java
@@ -0,0 +1,103 @@
+package thaumcraft.api;
+
+import java.lang.reflect.Method;
+
+import net.minecraft.item.ItemStack;
+import cpw.mods.fml.common.FMLLog;
+
+public class ThaumcraftApiHelper {
+ public static ObjectTags cullTags(ObjectTags temp) {
+ while (temp!=null && temp.size()>5) {
+ EnumTag lowest = null;
+ int low = Integer.MAX_VALUE;
+ for (EnumTag tag:temp.getAspects()) {
+ if (temp.getAmount(tag) aspects = new HashMap();
+
+ //PRIMAL
+ public static final Aspect AIR = new Aspect("Air");
+ public static final Aspect EARTH = new Aspect("Earth");
+ public static final Aspect FIRE = new Aspect("Fire");
+ public static final Aspect WATER = new Aspect("Water");
+ public static final Aspect POSITIVE = new Aspect("Positive");
+ public static final Aspect NEGATIVE = new Aspect("Negative");
+ public static final Aspect ORDER = new Aspect("Order");
+ public static final Aspect CHAOS = new Aspect("Chaos");
+
+ //SECONDARY TODO
+ public static final Aspect VOID = new Aspect("Void", new Aspect[] {NEGATIVE, POSITIVE});
+ public static final Aspect LIGHT = new Aspect("Light", new Aspect[] {AIR, FIRE});
+ public static final Aspect DARKNESS = new Aspect("Darkness", new Aspect[] {VOID, LIGHT});
+ public static final Aspect ASTRAL = new Aspect("Astral", new Aspect[] {VOID, DARKNESS});
+ public static final Aspect ENERGY = new Aspect("Energy", new Aspect[] {POSITIVE, FIRE});
+ public static final Aspect LIFE = new Aspect("Life", new Aspect[] {POSITIVE, ENERGY});
+ public static final Aspect DEATH = new Aspect("Death", new Aspect[] {NEGATIVE, ENERGY});
+ public static final Aspect MOTION = new Aspect("Motion", new Aspect[] {AIR, ORDER});
+ public static final Aspect WEATHER = new Aspect("Weather", new Aspect[] {AIR, CHAOS});
+ public static final Aspect STONE = new Aspect("Stone", new Aspect[] {EARTH, ORDER});
+ public static final Aspect METAL = new Aspect("Metal", new Aspect[] {STONE, FIRE});
+ public static final Aspect SAND = new Aspect("Sand", new Aspect[] {AIR, STONE});
+ public static final Aspect SOUL = new Aspect("Soul", new Aspect[] {DEATH, LIFE});
+ public static final Aspect HEAL = new Aspect("Heal", new Aspect[] {POSITIVE, LIFE});
+ public static final Aspect HARM = new Aspect("Harm", new Aspect[] {NEGATIVE, LIFE});
+ public static final Aspect ANIMATE = new Aspect("Animate",new Aspect[] {MOTION, LIFE});
+ public static final Aspect MAN = new Aspect("Man", new Aspect[] {LIFE, SOUL});
+ public static final Aspect BEAST = new Aspect("Beast", new Aspect[] {LIFE, CHAOS});
+ public static final Aspect BIRD = new Aspect("Bird", new Aspect[] {BEAST, AIR});
+ public static final Aspect FISH = new Aspect("Fish", new Aspect[] {BEAST, WATER});
+ public static final Aspect SEED = new Aspect("Seed", new Aspect[] {LIFE, EARTH});
+ public static final Aspect TREE = new Aspect("Tree", new Aspect[] {SEED, EARTH});
+ public static final Aspect TOOL = new Aspect("Tool", new Aspect[] {MAN, METAL});
+ public static final Aspect MINE = new Aspect("Mine", new Aspect[] {MAN, STONE});
+ public static final Aspect WOOD = new Aspect("Wood", new Aspect[] {TREE, TOOL});
+ public static final Aspect MACHINE = new Aspect("Machine", new Aspect[] {TOOL, ORDER});
+
+
+// public static final Aspect TRAVEL = new Aspect("Travel", new Aspect[] {MOTION, EARTH});
+// public static final Aspect TELEPORT = new Aspect("Teleport", new Aspect[] {TRAVEL, VOID});
+// public static final Aspect GLASS = new Aspect("Glass", new Aspect[] {SAND, FIRE});
+// public static final Aspect CLAY = new Aspect("Clay", new Aspect[] {SAND, LIFE});
+
+}
diff --git a/common/thaumcraft/api/aura/AuraNode.java b/common/thaumcraft/api/aura/AuraNode.java
new file mode 100644
index 0000000..ac2f7dd
--- /dev/null
+++ b/common/thaumcraft/api/aura/AuraNode.java
@@ -0,0 +1,38 @@
+package thaumcraft.api.aura;
+
+import java.io.Serializable;
+
+import thaumcraft.api.ObjectTags;
+
+public class AuraNode implements Serializable {
+ //key
+ public int key;
+
+ //aura
+ public short level;
+ public short baseLevel;
+ public ObjectTags flux = new ObjectTags();
+ public EnumNodeType type;
+
+ //location
+ public int dimension;
+ public double xPos;
+ public double yPos;
+ public double zPos;
+ public boolean locked;
+
+ public AuraNode(int key, short lvl, EnumNodeType type, int dim, int x, int y, int z) {
+ this.key = key;
+ this.level = lvl;
+ this.baseLevel = lvl;
+ this.type = type;
+ this.dimension = dim;
+ this.xPos = x+.5d;
+ this.yPos = y+.5d;
+ this.zPos = z+.5d;
+ }
+
+ public AuraNode() {
+ }
+
+}
diff --git a/common/thaumcraft/api/aura/EnumNodeType.java b/common/thaumcraft/api/aura/EnumNodeType.java
new file mode 100644
index 0000000..e5f6115
--- /dev/null
+++ b/common/thaumcraft/api/aura/EnumNodeType.java
@@ -0,0 +1,21 @@
+package thaumcraft.api.aura;
+
+
+
+public enum EnumNodeType {
+ NORMAL,
+ PURE,
+ DARK,
+ UNSTABLE;
+
+ public static final EnumNodeType[] VALID_TYPES = {NORMAL,PURE,DARK,UNSTABLE};
+
+ public static EnumNodeType getType(int id)
+ {
+ if (id >= 0 && id < VALID_TYPES.length)
+ {
+ return VALID_TYPES[id];
+ }
+ return NORMAL;
+ }
+}
diff --git a/common/thaumcraft/api/crafting/IArcaneRecipe.java b/common/thaumcraft/api/crafting/IArcaneRecipe.java
new file mode 100644
index 0000000..1035219
--- /dev/null
+++ b/common/thaumcraft/api/crafting/IArcaneRecipe.java
@@ -0,0 +1,30 @@
+package thaumcraft.api.crafting;
+
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.inventory.IInventory;
+import net.minecraft.item.ItemStack;
+
+public interface IArcaneRecipe
+{
+
+
+ /**
+ * Used to check if a recipe matches current crafting inventory
+ * @param player
+ */
+ boolean matches(IInventory var1, EntityPlayer player);
+
+ /**
+ * Returns an Item that is the result of this recipe
+ */
+ ItemStack getCraftingResult(IInventory var1);
+
+ /**
+ * Returns the size of the recipe area
+ */
+ int getRecipeSize();
+
+ ItemStack getRecipeOutput();
+ int getCost();
+ String getKey();
+}
diff --git a/common/thaumcraft/api/crafting/IInfusionRecipe.java b/common/thaumcraft/api/crafting/IInfusionRecipe.java
new file mode 100644
index 0000000..3a43ab8
--- /dev/null
+++ b/common/thaumcraft/api/crafting/IInfusionRecipe.java
@@ -0,0 +1,30 @@
+package thaumcraft.api.crafting;
+
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.inventory.IInventory;
+import net.minecraft.item.ItemStack;
+import thaumcraft.api.ObjectTags;
+
+public interface IInfusionRecipe
+{
+ /**
+ * Used to check if a recipe matches current crafting inventory
+ * @param player
+ */
+ boolean matches(IInventory var1, EntityPlayer player);
+
+ /**
+ * Returns an Item that is the result of this recipe
+ */
+ ItemStack getCraftingResult(IInventory var1);
+
+ /**
+ * Returns the size of the recipe area
+ */
+ int getRecipeSize();
+
+ ItemStack getRecipeOutput();
+ int getCost();
+ ObjectTags getTags();
+ String getKey();
+}
diff --git a/common/thaumcraft/api/crafting/RecipeCrucible.java b/common/thaumcraft/api/crafting/RecipeCrucible.java
new file mode 100644
index 0000000..045a601
--- /dev/null
+++ b/common/thaumcraft/api/crafting/RecipeCrucible.java
@@ -0,0 +1,51 @@
+package thaumcraft.api.crafting;
+
+import net.minecraft.item.ItemStack;
+import thaumcraft.api.EnumTag;
+import thaumcraft.api.ObjectTags;
+
+public class RecipeCrucible {
+
+ public ItemStack recipeOutput;
+ public ObjectTags tags;
+ public String key;
+ public String researchKey;
+ public int cost;
+
+ public RecipeCrucible(String researchKey, String key, ItemStack result, ObjectTags tags, int cost) {
+ recipeOutput = result;
+ this.tags = tags;
+ this.key = key;
+ this.researchKey = researchKey;
+ this.cost = cost;
+ }
+
+ public RecipeCrucible(String key, ItemStack result, ObjectTags tags, int cost) {
+ recipeOutput = result;
+ this.tags = tags;
+ this.key = key;
+ this.researchKey = key;
+ this.cost = cost;
+ }
+
+ public boolean matches(ObjectTags itags) {
+ if (itags==null) return false;
+ for (EnumTag tag:tags.getAspects()) {
+ if (itags.getAmount(tag)0 && !ThaumcraftApiHelper.isResearchComplete(player.username, key)) {
+ return false;
+ }
+ for (int var2 = 0; var2 <= 3 - this.recipeWidth; ++var2)
+ {
+ for (int var3 = 0; var3 <= 3 - this.recipeHeight; ++var3)
+ {
+ if (this.checkMatch(par1InventoryCrafting, var2, var3, true))
+ {
+ return true;
+ }
+
+ if (this.checkMatch(par1InventoryCrafting, var2, var3, false))
+ {
+ return true;
+ }
+ }
+ }
+
+ return false;
+ }
+
+
+
+
+ /**
+ * Checks if the region of a crafting inventory is match for the recipe.
+ */
+ private boolean checkMatch(IInventory par1InventoryCrafting, int par2, int par3, boolean par4)
+ {
+ for (int var5 = 0; var5 < 3; ++var5)
+ {
+ for (int var6 = 0; var6 < 3; ++var6)
+ {
+ int var7 = var5 - par2;
+ int var8 = var6 - par3;
+ ItemStack var9 = null;
+
+ if (var7 >= 0 && var8 >= 0 && var7 < this.recipeWidth && var8 < this.recipeHeight)
+ {
+ if (par4)
+ {
+ var9 = this.recipeItems[this.recipeWidth - var7 - 1 + var8 * this.recipeWidth];
+ }
+ else
+ {
+ var9 = this.recipeItems[var7 + var8 * this.recipeWidth];
+ }
+ }
+
+ ItemStack var10 = ThaumcraftApiHelper.getStackInRowAndColumn(par1InventoryCrafting, var5, var6);
+
+ if (var10 != null || var9 != null)
+ {
+ if (var10 == null && var9 != null || var10 != null && var9 == null)
+ {
+ return false;
+ }
+
+ if (var9.itemID != var10.itemID)
+ {
+ return false;
+ }
+
+ if (var9.getItemDamage() != OreDictionary.WILDCARD_VALUE && var9.getItemDamage() != var10.getItemDamage())
+ {
+ return false;
+ }
+
+ if (var9.hasTagCompound()) {
+ NBTTagCompound tc = var9.getTagCompound();
+ for (Object tag:tc.getTags().toArray()) {
+ NBTBase base = (NBTBase)tag;
+ Class nc = NBTBase.newTag(base.getId(), base.getName()).getClass();
+ if (!(var10.hasTagCompound() &&
+ nc.cast(var10.getTagCompound().getTag(base.getName())).equals(nc.cast(base)))) {
+ return false;
+ }
+ }
+ }
+
+
+ }
+ }
+ }
+
+ return true;
+ }
+
+ /**
+ * Returns an Item that is the result of this recipe
+ */
+ public ItemStack getCraftingResult(IInventory par1InventoryCrafting)
+ {
+ return new ItemStack(this.recipeOutput.itemID, this.recipeOutput.stackSize, this.recipeOutput.getItemDamage());
+ }
+
+ /**
+ * Returns the size of the recipe area
+ */
+ public int getRecipeSize()
+ {
+ return this.recipeWidth * this.recipeHeight;
+ }
+
+ @Override
+ public int getCost() {
+ return cost;
+ }
+
+ @Override
+ public String getKey() {
+ return key;
+ }
+}
diff --git a/common/thaumcraft/api/crafting/ShapedInfusionCraftingRecipes.java b/common/thaumcraft/api/crafting/ShapedInfusionCraftingRecipes.java
new file mode 100644
index 0000000..989c8e2
--- /dev/null
+++ b/common/thaumcraft/api/crafting/ShapedInfusionCraftingRecipes.java
@@ -0,0 +1,171 @@
+package thaumcraft.api.crafting;
+
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.inventory.IInventory;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTBase;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraftforge.oredict.OreDictionary;
+import thaumcraft.api.ObjectTags;
+import thaumcraft.api.ThaumcraftApiHelper;
+
+public class ShapedInfusionCraftingRecipes implements IInfusionRecipe
+{
+ /** How many horizontal slots this recipe is wide. */
+ public int recipeWidth;
+
+ /** How many vertical slots this recipe uses. */
+ public int recipeHeight;
+
+ public String key;
+
+ @Override
+ public String getKey() {
+ return key;
+ }
+
+ public int cost;
+
+ public ObjectTags tags;
+
+ /** Is a array of ItemStack that composes the recipe. */
+ public ItemStack[] recipeItems;
+
+ /** Is the ItemStack that you get when craft the recipe. */
+ private ItemStack recipeOutput;
+
+ /** Is the itemID of the output item that you get when craft the recipe. */
+ public final int recipeOutputItemID;
+
+ public ShapedInfusionCraftingRecipes(String key, int par1, int par2, ItemStack[] par3ArrayOfItemStack, ItemStack par4ItemStack, int cost, ObjectTags tags)
+ {
+ this.recipeOutputItemID = par4ItemStack.itemID;
+ this.recipeWidth = par1;
+ this.recipeHeight = par2;
+ this.recipeItems = par3ArrayOfItemStack;
+ this.recipeOutput = par4ItemStack;
+ this.key = key;
+ this.cost = cost;
+ this.tags = tags;
+ }
+
+ public ItemStack getRecipeOutput()
+ {
+ return this.recipeOutput;
+ }
+
+ /**
+ * Used to check if a recipe matches current crafting inventory
+ */
+ public boolean matches(IInventory par1InventoryCrafting, EntityPlayer player)
+ {
+ if (key.length()>0 && !ThaumcraftApiHelper.isResearchComplete(player.username, key)) {
+ return false;
+ }
+ for (int var2 = 0; var2 <= 3 - this.recipeWidth; ++var2)
+ {
+ for (int var3 = 0; var3 <= 3 - this.recipeHeight; ++var3)
+ {
+ if (this.checkMatch(par1InventoryCrafting, var2, var3, true))
+ {
+ return true;
+ }
+
+ if (this.checkMatch(par1InventoryCrafting, var2, var3, false))
+ {
+ return true;
+ }
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Checks if the region of a crafting inventory is match for the recipe.
+ */
+ private boolean checkMatch(IInventory par1InventoryCrafting, int par2, int par3, boolean par4)
+ {
+ for (int var5 = 0; var5 < 3; ++var5)
+ {
+ for (int var6 = 0; var6 < 3; ++var6)
+ {
+ int var7 = var5 - par2;
+ int var8 = var6 - par3;
+ ItemStack var9 = null;
+
+ if (var7 >= 0 && var8 >= 0 && var7 < this.recipeWidth && var8 < this.recipeHeight)
+ {
+ if (par4)
+ {
+ var9 = this.recipeItems[this.recipeWidth - var7 - 1 + var8 * this.recipeWidth];
+ }
+ else
+ {
+ var9 = this.recipeItems[var7 + var8 * this.recipeWidth];
+ }
+ }
+
+ ItemStack var10 = ThaumcraftApiHelper.getStackInRowAndColumn(par1InventoryCrafting, var5, var6);
+
+ if (var10 != null || var9 != null)
+ {
+ if (var10 == null && var9 != null || var10 != null && var9 == null)
+ {
+ return false;
+ }
+
+ if (var9.itemID != var10.itemID)
+ {
+ return false;
+ }
+
+ if (var9.getItemDamage() != OreDictionary.WILDCARD_VALUE && var9.getItemDamage() != var10.getItemDamage())
+ {
+ return false;
+ }
+
+ if (var9.hasTagCompound()) {
+ NBTTagCompound tc = var9.getTagCompound();
+ for (Object tag:tc.getTags().toArray()) {
+ NBTBase base = (NBTBase)tag;
+ Class nc = NBTBase.newTag(base.getId(), base.getName()).getClass();
+ if (!(var10.hasTagCompound() &&
+ nc.cast(var10.getTagCompound().getTag(base.getName())).equals(nc.cast(base)))) {
+ return false;
+ }
+ }
+ }
+ }
+ }
+ }
+
+ return true;
+ }
+
+ /**
+ * Returns an Item that is the result of this recipe
+ */
+ public ItemStack getCraftingResult(IInventory par1InventoryCrafting)
+ {
+ return new ItemStack(this.recipeOutput.itemID, this.recipeOutput.stackSize, this.recipeOutput.getItemDamage());
+ }
+
+ /**
+ * Returns the size of the recipe area
+ */
+ public int getRecipeSize()
+ {
+ return this.recipeWidth * this.recipeHeight;
+ }
+
+ @Override
+ public int getCost() {
+ return cost;
+ }
+
+ @Override
+ public ObjectTags getTags() {
+ return tags;
+ }
+}
diff --git a/common/thaumcraft/api/crafting/ShapelessArcaneCraftingRecipes.java b/common/thaumcraft/api/crafting/ShapelessArcaneCraftingRecipes.java
new file mode 100644
index 0000000..1984c24
--- /dev/null
+++ b/common/thaumcraft/api/crafting/ShapelessArcaneCraftingRecipes.java
@@ -0,0 +1,127 @@
+package thaumcraft.api.crafting;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.inventory.IInventory;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTBase;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraftforge.oredict.OreDictionary;
+import thaumcraft.api.ThaumcraftApiHelper;
+
+public class ShapelessArcaneCraftingRecipes implements IArcaneRecipe
+{
+ /** Is the ItemStack that you get when craft the recipe. */
+ private final ItemStack recipeOutput;
+
+ /** Is a List of ItemStack that composes the recipe. */
+ public final List recipeItems;
+
+ public String key;
+
+ @Override
+ public String getKey() {
+ return key;
+ }
+
+ public int cost;
+
+ public ShapelessArcaneCraftingRecipes(String key, ItemStack par1ItemStack, List par2List, int cost)
+ {
+ this.recipeOutput = par1ItemStack;
+ this.recipeItems = par2List;
+ this.key = key;
+ this.cost = cost;
+ }
+
+ public ItemStack getRecipeOutput()
+ {
+ return this.recipeOutput;
+ }
+
+ /**
+ * Used to check if a recipe matches current crafting inventory
+ */
+ public boolean matches(IInventory par1InventoryCrafting, EntityPlayer player)
+ {
+ if (key.length()>0 && !ThaumcraftApiHelper.isResearchComplete(player.username, key)) {
+ return false;
+ }
+
+ ArrayList var2 = new ArrayList(this.recipeItems);
+
+ for (int var3 = 0; var3 < 3; ++var3)
+ {
+ for (int var4 = 0; var4 < 3; ++var4)
+ {
+ ItemStack var5 = ThaumcraftApiHelper.getStackInRowAndColumn(par1InventoryCrafting, var4, var3);
+
+ if (var5 != null)
+ {
+ boolean var6 = false;
+ Iterator var7 = var2.iterator();
+
+ while (var7.hasNext())
+ {
+ ItemStack var8 = (ItemStack)var7.next();
+
+ if (var5.itemID == var8.itemID && (var8.getItemDamage() == OreDictionary.WILDCARD_VALUE || var5.getItemDamage() == var8.getItemDamage()))
+ {
+ boolean matches=true;
+ if (var8.hasTagCompound()) {
+ NBTTagCompound tc = var8.getTagCompound();
+ for (Object tag:tc.getTags().toArray()) {
+ NBTBase base = (NBTBase)tag;
+ Class nc = NBTBase.newTag(base.getId(), base.getName()).getClass();
+ if (!(var5.hasTagCompound() &&
+ nc.cast(var5.getTagCompound().getTag(base.getName())).equals(nc.cast(base)))) {
+ matches=false;
+ break;
+ }
+ }
+ }
+
+ if (matches) {
+ var6 = true;
+ var2.remove(var8);
+ break;
+ }
+ }
+ }
+
+ if (!var6)
+ {
+ return false;
+ }
+ }
+ }
+ }
+
+ return var2.isEmpty();
+ }
+
+ /**
+ * Returns an Item that is the result of this recipe
+ */
+ public ItemStack getCraftingResult(IInventory par1InventoryCrafting)
+ {
+ return this.recipeOutput.copy();
+ }
+
+ /**
+ * Returns the size of the recipe area
+ */
+ public int getRecipeSize()
+ {
+ return this.recipeItems.size();
+ }
+
+ @Override
+ public int getCost() {
+ return cost;
+ }
+
+}
diff --git a/common/thaumcraft/api/crafting/ShapelessInfusionCraftingRecipes.java b/common/thaumcraft/api/crafting/ShapelessInfusionCraftingRecipes.java
new file mode 100644
index 0000000..5869fb2
--- /dev/null
+++ b/common/thaumcraft/api/crafting/ShapelessInfusionCraftingRecipes.java
@@ -0,0 +1,136 @@
+package thaumcraft.api.crafting;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.inventory.IInventory;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTBase;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraftforge.oredict.OreDictionary;
+import thaumcraft.api.ObjectTags;
+import thaumcraft.api.ThaumcraftApiHelper;
+
+public class ShapelessInfusionCraftingRecipes implements IInfusionRecipe
+{
+ /** Is the ItemStack that you get when craft the recipe. */
+ private final ItemStack recipeOutput;
+
+ /** Is a List of ItemStack that composes the recipe. */
+ public final List recipeItems;
+
+ public String key;
+
+ @Override
+ public String getKey() {
+ return key;
+ }
+
+ public int cost;
+
+ public ObjectTags tags;
+
+ public ShapelessInfusionCraftingRecipes(String key, ItemStack par1ItemStack, List par2List, int cost, ObjectTags tags)
+ {
+ this.recipeOutput = par1ItemStack;
+ this.recipeItems = par2List;
+ this.key = key;
+ this.cost = cost;
+ this.tags = tags;
+ }
+
+ public ItemStack getRecipeOutput()
+ {
+ return this.recipeOutput;
+ }
+
+ /**
+ * Used to check if a recipe matches current crafting inventory
+ */
+ public boolean matches(IInventory par1InventoryCrafting, EntityPlayer player)
+ {
+ if (key.length()>0 && !ThaumcraftApiHelper.isResearchComplete(player.username, key)) {
+ return false;
+ }
+
+ ArrayList var2 = new ArrayList(this.recipeItems);
+
+ for (int var3 = 0; var3 < 3; ++var3)
+ {
+ for (int var4 = 0; var4 < 3; ++var4)
+ {
+ ItemStack var5 = ThaumcraftApiHelper.getStackInRowAndColumn(par1InventoryCrafting, var4, var3);
+
+ if (var5 != null)
+ {
+ boolean var6 = false;
+ Iterator var7 = var2.iterator();
+
+ while (var7.hasNext())
+ {
+ ItemStack var8 = (ItemStack)var7.next();
+
+ if (var5.itemID == var8.itemID && (var8.getItemDamage() == OreDictionary.WILDCARD_VALUE || var5.getItemDamage() == var8.getItemDamage()))
+ {
+ boolean matches=true;
+ if (var8.hasTagCompound()) {
+ NBTTagCompound tc = var8.getTagCompound();
+ for (Object tag:tc.getTags().toArray()) {
+ NBTBase base = (NBTBase)tag;
+ Class nc = NBTBase.newTag(base.getId(), base.getName()).getClass();
+ if (!(var5.hasTagCompound() &&
+ nc.cast(var5.getTagCompound().getTag(base.getName())).equals(nc.cast(base)))) {
+ matches=false;
+ break;
+ }
+ }
+ }
+
+ if (matches) {
+ var6 = true;
+ var2.remove(var8);
+ break;
+ }
+ }
+ }
+
+ if (!var6)
+ {
+ return false;
+ }
+ }
+ }
+ }
+
+ return var2.isEmpty();
+ }
+
+ /**
+ * Returns an Item that is the result of this recipe
+ */
+ public ItemStack getCraftingResult(IInventory par1InventoryCrafting)
+ {
+ return this.recipeOutput.copy();
+ }
+
+ /**
+ * Returns the size of the recipe area
+ */
+ public int getRecipeSize()
+ {
+ return this.recipeItems.size();
+ }
+
+ @Override
+ public int getCost() {
+ return cost;
+ }
+
+ @Override
+ public ObjectTags getTags() {
+ return tags;
+ }
+
+}
diff --git a/common/thaumcraft/api/crafting/ShapelessInfusionCraftingWithNBTRecipes.java b/common/thaumcraft/api/crafting/ShapelessInfusionCraftingWithNBTRecipes.java
new file mode 100644
index 0000000..641f136
--- /dev/null
+++ b/common/thaumcraft/api/crafting/ShapelessInfusionCraftingWithNBTRecipes.java
@@ -0,0 +1,134 @@
+package thaumcraft.api.crafting;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.inventory.IInventory;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTBase;
+import net.minecraftforge.oredict.OreDictionary;
+import thaumcraft.api.ObjectTags;
+import thaumcraft.api.ThaumcraftApiHelper;
+
+public class ShapelessInfusionCraftingWithNBTRecipes implements IInfusionRecipe
+{
+ /** Is the ItemStack that you get when craft the recipe. */
+ private final ItemStack recipeOutput;
+
+ /** Is a List of ItemStack that composes the recipe. */
+ public final List recipeItems;
+
+ /** Is a List of nbt key/value pairs. */
+ public final List nbtList;
+
+ public String key;
+
+ @Override
+ public String getKey() {
+ return key;
+ }
+
+ public int cost;
+
+ public ObjectTags tags;
+
+ public ShapelessInfusionCraftingWithNBTRecipes(String key,
+ ItemStack par1ItemStack,
+ List par2List, int cost, ObjectTags tags,
+ List nbtList)
+ {
+ this.recipeOutput = par1ItemStack;
+ this.recipeItems = par2List;
+ this.key = key;
+ this.cost = cost;
+ this.tags = tags;
+ this.nbtList = nbtList;
+ }
+
+ public ItemStack getRecipeOutput()
+ {
+ return this.recipeOutput;
+ }
+
+ /**
+ * Used to check if a recipe matches current crafting inventory
+ */
+ public boolean matches(IInventory par1InventoryCrafting, EntityPlayer player)
+ {
+ if (key.length()>0 && !ThaumcraftApiHelper.isResearchComplete(player.username, key)) {
+ return false;
+ }
+
+ ArrayList var2 = new ArrayList(this.recipeItems);
+
+ for (int var3 = 0; var3 < 3; ++var3)
+ {
+ for (int var4 = 0; var4 < 3; ++var4)
+ {
+ ItemStack var5 = ThaumcraftApiHelper.getStackInRowAndColumn(par1InventoryCrafting, var4, var3);
+
+ if (var5 != null)
+ {
+ boolean var6 = false;
+ Iterator var7 = var2.iterator();
+ b1:
+ while (var7.hasNext())
+ {
+ ItemStack var8 = (ItemStack)var7.next();
+
+ if (var5.itemID == var8.itemID && (var8.getItemDamage() == OreDictionary.WILDCARD_VALUE || var5.getItemDamage() == var8.getItemDamage()))
+ {
+ for (NBTBase nbt:nbtList) {
+ try {
+ Class nc = NBTBase.newTag(nbt.getId(), nbt.getName()).getClass();
+ if (var5.hasTagCompound() &&
+ nc.cast(var5.getTagCompound().getTag(nbt.getName())).equals(nc.cast(nbt))) {
+ var6 = true;
+ var2.remove(var8);
+ break b1;
+ }
+ } catch (Exception e) {/*probably classcast*/}
+ }
+ }
+ }
+
+ if (!var6)
+ {
+ return false;
+ }
+ }
+ }
+ }
+
+ return var2.isEmpty();
+ }
+
+ /**
+ * Returns an Item that is the result of this recipe
+ */
+ public ItemStack getCraftingResult(IInventory par1InventoryCrafting)
+ {
+ return this.recipeOutput.copy();
+ }
+
+ /**
+ * Returns the size of the recipe area
+ */
+ public int getRecipeSize()
+ {
+ return this.recipeItems.size();
+ }
+
+ @Override
+ public int getCost() {
+ return cost;
+ }
+
+ @Override
+ public ObjectTags getTags() {
+ return tags;
+ }
+
+}
diff --git a/common/thaumcraft/api/research/IScanEventHandler.java b/common/thaumcraft/api/research/IScanEventHandler.java
new file mode 100644
index 0000000..d0efac5
--- /dev/null
+++ b/common/thaumcraft/api/research/IScanEventHandler.java
@@ -0,0 +1,9 @@
+package thaumcraft.api.research;
+
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.world.World;
+
+public interface IScanEventHandler {
+ ScanResult scanPhenomena(ItemStack stack, World world, EntityPlayer player);
+}
diff --git a/common/thaumcraft/api/research/ResearchItem.java b/common/thaumcraft/api/research/ResearchItem.java
new file mode 100644
index 0000000..c305c23
--- /dev/null
+++ b/common/thaumcraft/api/research/ResearchItem.java
@@ -0,0 +1,274 @@
+package thaumcraft.api.research;
+
+import net.minecraft.block.Block;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+
+import thaumcraft.api.ObjectTags;
+import thaumcraft.api.ThaumcraftApi;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+
+public class ResearchItem
+{
+ /**
+ * A short string used as a key for this research. Must be unique
+ */
+ public final String key;
+
+ /**
+ * The name of the research shown in the thaumonomicon
+ */
+ public String name;
+
+ /**
+ * The blurb text shown below the research name in the thaumonomicon
+ */
+ public String popupText;
+
+ /**
+ * A longer description of the research. This is the text shown in the handheld research scroll and the research table.
+ */
+ public String longText;
+
+ /**
+ * The aspect tags and their values required to complete this research
+ */
+ public final ObjectTags tags;
+
+ /**
+ * This links to any research that needs to be completed before this research can be discovered or learnt.
+ */
+ public ResearchItem[] parents = null;
+
+ /**
+ * Like parent above, but a line will not be displayed in the thaumonomicon linking them. Just used to prevent clutter.
+ */
+ public ResearchItem[] parentsHidden = null;
+ /**
+ * any research linked to this that will be unlocked automatically when this research is complete
+ */
+ public ResearchItem[] siblings = null;
+
+ /**
+ * the horizontal position of the research icon
+ */
+ public final int displayColumn;
+
+ /**
+ * the vertical position of the research icon
+ */
+ public final int displayRow;
+
+ /**
+ * the itemstack of an item or block that will be used as the icon for this research
+ */
+ public final ItemStack itemStack;
+
+ /**
+ * the index within the research.png file used for this research if it does not use an item icon
+ */
+ public final int iconIndex;
+
+ /**
+ * Special research has a spiky border. Used for important research milestones.
+ */
+ private boolean isSpecial;
+ /**
+ * This indicates if the research should use a circular icon border. Usually used for research that doesn't
+ * have recipes or that unlocks automatically via the sibling system
+ */
+ private boolean isStub;
+ /**
+ * Indicates research that cannot be gained by normal means (either via normal or lost research),
+ * but still uses a normal icon. Works much like isStub but is handy for mods that wish to add research
+ * through their own means and keep a normal icon.
+ */
+ private boolean isAlternate;
+ /**
+ * Hidden research does not display in the thaumonomicon until discovered
+ */
+ private boolean isHidden;
+ /**
+ * Lost research can only be discovered via knowledge fragments
+ */
+ private boolean isLost;
+ /**
+ * These research items will automatically unlock for all players on game start
+ */
+ private boolean isAutoUnlock;
+
+
+
+ public ResearchItem(String par1, ObjectTags tags, int par3, int par4, int icon)
+ {
+ this(par1, tags, par3, par4, (ItemStack)null, icon);
+ }
+
+ public ResearchItem(String par1, ObjectTags tags, int par3, int par4, ItemStack par5Item)
+ {
+ this(par1, tags, par3, par4, par5Item, -1);
+ }
+
+ public ResearchItem(String par1, ObjectTags tags, int par3, int par4, Item par5Item)
+ {
+ this(par1, tags, par3, par4, new ItemStack(par5Item), -1);
+ }
+
+ public ResearchItem(String par1, ObjectTags tags, int par3, int par4, Block par5Block)
+ {
+ this(par1, tags, par3, par4, new ItemStack(par5Block), -1);
+ }
+
+ public ResearchItem(String par1, ObjectTags tags, int par3, int par4, ItemStack par5ItemStack, int icon)
+ {
+ this.key = par1;
+ this.tags = tags;
+ this.name = "";
+ this.longText = "";
+ this.popupText = "";
+
+ Element el = ThaumcraftApi.researchDoc.getElementById(key);
+ if (el!=null) {
+ NodeList children = el.getChildNodes();
+ for (int a=0;a ResearchList.maxDisplayColumn)
+ {
+ ResearchList.maxDisplayColumn = par3;
+ }
+
+ if (par4 > ResearchList.maxDisplayRow)
+ {
+ ResearchList.maxDisplayRow = par4;
+ }
+
+
+ }
+
+ public ResearchItem setSpecial()
+ {
+ this.isSpecial = true;
+ return this;
+ }
+
+ public ResearchItem setStub()
+ {
+ this.isStub = true;
+ return this;
+ }
+
+ public ResearchItem setAlternate()
+ {
+ this.isAlternate = true;
+ return this;
+ }
+
+ public ResearchItem setHidden()
+ {
+ this.isHidden = true;
+ return this;
+ }
+
+ public ResearchItem setLost()
+ {
+ this.isLost = true;
+ return this;
+ }
+
+ public ResearchItem setParents(ResearchItem... par)
+ {
+ this.parents = par;
+ return this;
+ }
+
+ public ResearchItem setParentsHidden(ResearchItem... par)
+ {
+ this.parentsHidden = par;
+ return this;
+ }
+
+ public ResearchItem setSiblings(ResearchItem... sib)
+ {
+ this.siblings = sib;
+ return this;
+ }
+
+ public ResearchItem registerResearchItem()
+ {
+ ResearchList.research.put(key, this);
+ return this;
+ }
+
+ @SideOnly(Side.CLIENT)
+ public String getName()
+ {
+ return this.name;
+ }
+
+ @SideOnly(Side.CLIENT)
+ public boolean getSpecial()
+ {
+ return this.isSpecial;
+ }
+
+ public boolean getStub()
+ {
+ return this.isStub;
+ }
+
+ public boolean getAlternate()
+ {
+ return this.isAlternate;
+ }
+
+ public boolean getHidden()
+ {
+ return this.isHidden;
+ }
+
+ public boolean getLost()
+ {
+ return this.isLost;
+ }
+
+ public boolean getAutoUnlock() {
+ return isAutoUnlock;
+ }
+
+ public ResearchItem setAutoUnlock()
+ {
+ this.isAutoUnlock = true;
+ return this;
+ }
+}
diff --git a/common/thaumcraft/api/research/ResearchList.java b/common/thaumcraft/api/research/ResearchList.java
new file mode 100644
index 0000000..c77f17d
--- /dev/null
+++ b/common/thaumcraft/api/research/ResearchList.java
@@ -0,0 +1,91 @@
+package thaumcraft.api.research;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import thaumcraft.api.EnumTag;
+
+public class ResearchList {
+
+ /** Is the smallest column used on the GUI. */
+ public static int minDisplayColumn;
+
+ /** Is the smallest row used on the GUI. */
+ public static int minDisplayRow;
+
+ /** Is the biggest column used on the GUI. */
+ public static int maxDisplayColumn;
+
+ /** Is the biggest row used on the GUI. */
+ public static int maxDisplayRow;
+
+ //Research
+ public static Map research = new HashMap();
+
+
+ public static Map craftingRecipesForResearch = new HashMap();
+
+ //
+
+
+ /**
+ * @param key
+ * @return the research item linked to this key
+ */
+ public static ResearchItem getResearch(String key) {
+ return research.get(key);
+ }
+
+
+
+ /**
+ * @param key
+ * @return the name of the research linked to this key
+ */
+ public static String getResearchName(String key) {
+ ResearchItem rr = research.get(key);
+ if (rr==null) return "";
+ return rr.name;
+ }
+
+ /**
+ * @param key
+ * @return a list of the enumtags used in this research. returns the numeric values and not the actual enum
+ */
+ public static byte[] getResearchTags(String key) {
+ ResearchItem rr = research.get(key);
+ if (rr==null) return null;
+ byte[] output = new byte[rr.tags.size()];
+ EnumTag[] et = rr.tags.getAspects();
+ for (int a=0;aamt) {
+ t=tag.id;
+ amt=rr.tags.getAmount(tag);
+ };
+ }
+ return t;
+ }
+
+ public static int getResearchAmount(String key, EnumTag tag) {
+ ResearchItem rr = research.get(key);
+ if (rr==null) return 0;
+ return rr.tags.getAmount(tag);
+ }
+
+}
diff --git a/common/thaumcraft/api/research/ResearchPlayer.java b/common/thaumcraft/api/research/ResearchPlayer.java
new file mode 100644
index 0000000..8131fb2
--- /dev/null
+++ b/common/thaumcraft/api/research/ResearchPlayer.java
@@ -0,0 +1,14 @@
+package thaumcraft.api.research;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class ResearchPlayer {
+ public Map> researchCompleted = new HashMap>();
+
+ public Map> objectsScanned = new HashMap>();
+ public Map> entitiesScanned = new HashMap>();
+ public Map> phenomenaScanned = new HashMap>();
+
+}
diff --git a/common/thaumcraft/api/research/ScanResult.java b/common/thaumcraft/api/research/ScanResult.java
new file mode 100644
index 0000000..774ab27
--- /dev/null
+++ b/common/thaumcraft/api/research/ScanResult.java
@@ -0,0 +1,39 @@
+package thaumcraft.api.research;
+
+import net.minecraft.entity.Entity;
+
+public class ScanResult {
+ public byte type = 0; //1=blocks,2=entities,3=phenomena
+ public int blockId;
+ public int blockMeta;
+ public Entity entity;
+ public String phenomena;
+
+ public ScanResult(byte type, int blockId, int blockMeta, Entity entity,
+ String phenomena) {
+ super();
+ this.type = type;
+ this.blockId = blockId;
+ this.blockMeta = blockMeta;
+ this.entity = entity;
+ this.phenomena = phenomena;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (obj instanceof ScanResult) {
+ ScanResult sr = (ScanResult) obj;
+ if (type != sr.type)
+ return false;
+ if (type == 1
+ && (blockId != sr.blockId || blockMeta != sr.blockMeta))
+ return false;
+ if (type == 2 && entity.entityId != sr.entity.entityId)
+ return false;
+ if (type == 3 && !phenomena.equals(sr.phenomena))
+ return false;
+ }
+ return true;
+ }
+
+}
diff --git a/mods/Experiments/textures/misc/spark.png b/mods/Experiments/textures/misc/spark.png
new file mode 100644
index 0000000..2a8d8ff
Binary files /dev/null and b/mods/Experiments/textures/misc/spark.png differ
diff --git a/mods/MysticTextures/OreStone_.psd b/mods/MysticTextures/OreStone_.psd
new file mode 100644
index 0000000..1d817cb
Binary files /dev/null and b/mods/MysticTextures/OreStone_.psd differ
diff --git a/mods/MysticTextures/textures/armor/adamantine_1.png b/mods/MysticTextures/textures/armor/adamantine_1.png
new file mode 100644
index 0000000..30002ad
Binary files /dev/null and b/mods/MysticTextures/textures/armor/adamantine_1.png differ
diff --git a/mods/MysticTextures/textures/armor/adamantine_2.png b/mods/MysticTextures/textures/armor/adamantine_2.png
new file mode 100644
index 0000000..2e1aaf5
Binary files /dev/null and b/mods/MysticTextures/textures/armor/adamantine_2.png differ
diff --git a/mods/MysticTextures/textures/armor/iridium_1.png b/mods/MysticTextures/textures/armor/iridium_1.png
new file mode 100644
index 0000000..0175d21
Binary files /dev/null and b/mods/MysticTextures/textures/armor/iridium_1.png differ
diff --git a/mods/MysticTextures/textures/armor/iridium_2.png b/mods/MysticTextures/textures/armor/iridium_2.png
new file mode 100644
index 0000000..ee474b7
Binary files /dev/null and b/mods/MysticTextures/textures/armor/iridium_2.png differ
diff --git a/mods/MysticTextures/textures/armor/mithril_1.png b/mods/MysticTextures/textures/armor/mithril_1.png
new file mode 100644
index 0000000..b8fc606
Binary files /dev/null and b/mods/MysticTextures/textures/armor/mithril_1.png differ
diff --git a/mods/MysticTextures/textures/armor/mithril_2.png b/mods/MysticTextures/textures/armor/mithril_2.png
new file mode 100644
index 0000000..a08c429
Binary files /dev/null and b/mods/MysticTextures/textures/armor/mithril_2.png differ
diff --git a/mods/MysticTextures/textures/armor/verdite_1.png b/mods/MysticTextures/textures/armor/verdite_1.png
new file mode 100644
index 0000000..5c4796c
Binary files /dev/null and b/mods/MysticTextures/textures/armor/verdite_1.png differ
diff --git a/mods/MysticTextures/textures/armor/verdite_2.png b/mods/MysticTextures/textures/armor/verdite_2.png
new file mode 100644
index 0000000..424ff5a
Binary files /dev/null and b/mods/MysticTextures/textures/armor/verdite_2.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bricks_0.png b/mods/MysticTextures/textures/blocks/Bricks_0.png
new file mode 100644
index 0000000..c55860e
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bricks_0.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bricks_1.png b/mods/MysticTextures/textures/blocks/Bricks_1.png
new file mode 100644
index 0000000..8c8d429
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bricks_1.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bricks_2.png b/mods/MysticTextures/textures/blocks/Bricks_2.png
new file mode 100644
index 0000000..64d9de4
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bricks_2.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bricks_3.png b/mods/MysticTextures/textures/blocks/Bricks_3.png
new file mode 100644
index 0000000..02761a3
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bricks_3.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bricks_4.png b/mods/MysticTextures/textures/blocks/Bricks_4.png
new file mode 100644
index 0000000..8388314
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bricks_4.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bricks_5.png b/mods/MysticTextures/textures/blocks/Bricks_5.png
new file mode 100644
index 0000000..715a772
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bricks_5.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bricks_6.png b/mods/MysticTextures/textures/blocks/Bricks_6.png
new file mode 100644
index 0000000..f5aad0d
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bricks_6.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bush_0.png b/mods/MysticTextures/textures/blocks/Bush_0.png
new file mode 100644
index 0000000..2cc463c
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bush_0.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bush_1.png b/mods/MysticTextures/textures/blocks/Bush_1.png
new file mode 100644
index 0000000..a335b10
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bush_1.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bush_10.png b/mods/MysticTextures/textures/blocks/Bush_10.png
new file mode 100644
index 0000000..07545ca
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bush_10.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bush_11.png b/mods/MysticTextures/textures/blocks/Bush_11.png
new file mode 100644
index 0000000..c850501
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bush_11.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bush_2.png b/mods/MysticTextures/textures/blocks/Bush_2.png
new file mode 100644
index 0000000..482494a
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bush_2.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bush_3.png b/mods/MysticTextures/textures/blocks/Bush_3.png
new file mode 100644
index 0000000..1e534ec
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bush_3.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bush_4.png b/mods/MysticTextures/textures/blocks/Bush_4.png
new file mode 100644
index 0000000..5cecee8
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bush_4.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bush_5.png b/mods/MysticTextures/textures/blocks/Bush_5.png
new file mode 100644
index 0000000..1af8a1c
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bush_5.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bush_6.png b/mods/MysticTextures/textures/blocks/Bush_6.png
new file mode 100644
index 0000000..3d04e7f
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bush_6.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bush_7.png b/mods/MysticTextures/textures/blocks/Bush_7.png
new file mode 100644
index 0000000..5a7beb2
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bush_7.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bush_8.png b/mods/MysticTextures/textures/blocks/Bush_8.png
new file mode 100644
index 0000000..82a682b
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bush_8.png differ
diff --git a/mods/MysticTextures/textures/blocks/Bush_9.png b/mods/MysticTextures/textures/blocks/Bush_9.png
new file mode 100644
index 0000000..6a8f8ed
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Bush_9.png differ
diff --git a/mods/MysticTextures/textures/blocks/MysticOre_0.png b/mods/MysticTextures/textures/blocks/MysticOre_0.png
new file mode 100644
index 0000000..82c3233
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/MysticOre_0.png differ
diff --git a/mods/MysticTextures/textures/blocks/MysticOre_1.png b/mods/MysticTextures/textures/blocks/MysticOre_1.png
new file mode 100644
index 0000000..bbc88f5
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/MysticOre_1.png differ
diff --git a/mods/MysticTextures/textures/blocks/MysticOre_10.png b/mods/MysticTextures/textures/blocks/MysticOre_10.png
new file mode 100644
index 0000000..d9adf3a
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/MysticOre_10.png differ
diff --git a/mods/MysticTextures/textures/blocks/MysticOre_11.png b/mods/MysticTextures/textures/blocks/MysticOre_11.png
new file mode 100644
index 0000000..39e7db5
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/MysticOre_11.png differ
diff --git a/mods/MysticTextures/textures/blocks/MysticOre_2.png b/mods/MysticTextures/textures/blocks/MysticOre_2.png
new file mode 100644
index 0000000..4406592
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/MysticOre_2.png differ
diff --git a/mods/MysticTextures/textures/blocks/MysticOre_3.png b/mods/MysticTextures/textures/blocks/MysticOre_3.png
new file mode 100644
index 0000000..54f5bb4
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/MysticOre_3.png differ
diff --git a/mods/MysticTextures/textures/blocks/MysticOre_4.png b/mods/MysticTextures/textures/blocks/MysticOre_4.png
new file mode 100644
index 0000000..66b7fbe
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/MysticOre_4.png differ
diff --git a/mods/MysticTextures/textures/blocks/MysticOre_5.png b/mods/MysticTextures/textures/blocks/MysticOre_5.png
new file mode 100644
index 0000000..1130413
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/MysticOre_5.png differ
diff --git a/mods/MysticTextures/textures/blocks/MysticOre_6.png b/mods/MysticTextures/textures/blocks/MysticOre_6.png
new file mode 100644
index 0000000..f4c741c
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/MysticOre_6.png differ
diff --git a/mods/MysticTextures/textures/blocks/MysticOre_7.png b/mods/MysticTextures/textures/blocks/MysticOre_7.png
new file mode 100644
index 0000000..e080242
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/MysticOre_7.png differ
diff --git a/mods/MysticTextures/textures/blocks/MysticOre_8.png b/mods/MysticTextures/textures/blocks/MysticOre_8.png
new file mode 100644
index 0000000..8fcb269
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/MysticOre_8.png differ
diff --git a/mods/MysticTextures/textures/blocks/MysticOre_9.png b/mods/MysticTextures/textures/blocks/MysticOre_9.png
new file mode 100644
index 0000000..4262f4c
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/MysticOre_9.png differ
diff --git a/mods/MysticTextures/textures/blocks/OreStone_0.png b/mods/MysticTextures/textures/blocks/OreStone_0.png
new file mode 100644
index 0000000..332a978
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/OreStone_0.png differ
diff --git a/mods/MysticTextures/textures/blocks/OreStone_0.txt b/mods/MysticTextures/textures/blocks/OreStone_0.txt
new file mode 100644
index 0000000..b0a7c08
--- /dev/null
+++ b/mods/MysticTextures/textures/blocks/OreStone_0.txt
@@ -0,0 +1,38 @@
+0*2
+1*2
+2*2
+3*2
+4*2
+5*2
+6*2
+7*2
+8*2
+9*2
+10*2
+11*2
+12*2
+13*2
+14*2
+15*2
+16*2
+17*2
+18*2
+19*2
+18*2
+17*2
+16*2
+15*2
+14*2
+13*2
+12*2
+11*2
+10*2
+9*2
+8*2
+7*2
+6*2
+5*2
+4*2
+3*2
+2*2
+1*2
diff --git a/mods/MysticTextures/textures/blocks/OreStone_1.png b/mods/MysticTextures/textures/blocks/OreStone_1.png
new file mode 100644
index 0000000..1bfbc9c
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/OreStone_1.png differ
diff --git a/mods/MysticTextures/textures/blocks/OreStone_1.txt b/mods/MysticTextures/textures/blocks/OreStone_1.txt
new file mode 100644
index 0000000..b0a7c08
--- /dev/null
+++ b/mods/MysticTextures/textures/blocks/OreStone_1.txt
@@ -0,0 +1,38 @@
+0*2
+1*2
+2*2
+3*2
+4*2
+5*2
+6*2
+7*2
+8*2
+9*2
+10*2
+11*2
+12*2
+13*2
+14*2
+15*2
+16*2
+17*2
+18*2
+19*2
+18*2
+17*2
+16*2
+15*2
+14*2
+13*2
+12*2
+11*2
+10*2
+9*2
+8*2
+7*2
+6*2
+5*2
+4*2
+3*2
+2*2
+1*2
diff --git a/mods/MysticTextures/textures/blocks/OreStone_2.png b/mods/MysticTextures/textures/blocks/OreStone_2.png
new file mode 100644
index 0000000..ba58bad
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/OreStone_2.png differ
diff --git a/mods/MysticTextures/textures/blocks/OreStone_2.txt b/mods/MysticTextures/textures/blocks/OreStone_2.txt
new file mode 100644
index 0000000..b0a7c08
--- /dev/null
+++ b/mods/MysticTextures/textures/blocks/OreStone_2.txt
@@ -0,0 +1,38 @@
+0*2
+1*2
+2*2
+3*2
+4*2
+5*2
+6*2
+7*2
+8*2
+9*2
+10*2
+11*2
+12*2
+13*2
+14*2
+15*2
+16*2
+17*2
+18*2
+19*2
+18*2
+17*2
+16*2
+15*2
+14*2
+13*2
+12*2
+11*2
+10*2
+9*2
+8*2
+7*2
+6*2
+5*2
+4*2
+3*2
+2*2
+1*2
diff --git a/mods/MysticTextures/textures/blocks/OreStone_3.png b/mods/MysticTextures/textures/blocks/OreStone_3.png
new file mode 100644
index 0000000..9021f3a
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/OreStone_3.png differ
diff --git a/mods/MysticTextures/textures/blocks/OreStone_3.txt b/mods/MysticTextures/textures/blocks/OreStone_3.txt
new file mode 100644
index 0000000..b0a7c08
--- /dev/null
+++ b/mods/MysticTextures/textures/blocks/OreStone_3.txt
@@ -0,0 +1,38 @@
+0*2
+1*2
+2*2
+3*2
+4*2
+5*2
+6*2
+7*2
+8*2
+9*2
+10*2
+11*2
+12*2
+13*2
+14*2
+15*2
+16*2
+17*2
+18*2
+19*2
+18*2
+17*2
+16*2
+15*2
+14*2
+13*2
+12*2
+11*2
+10*2
+9*2
+8*2
+7*2
+6*2
+5*2
+4*2
+3*2
+2*2
+1*2
diff --git a/mods/MysticTextures/textures/blocks/OreStone_4.png b/mods/MysticTextures/textures/blocks/OreStone_4.png
new file mode 100644
index 0000000..07e7381
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/OreStone_4.png differ
diff --git a/mods/MysticTextures/textures/blocks/OreStone_4.txt b/mods/MysticTextures/textures/blocks/OreStone_4.txt
new file mode 100644
index 0000000..b0a7c08
--- /dev/null
+++ b/mods/MysticTextures/textures/blocks/OreStone_4.txt
@@ -0,0 +1,38 @@
+0*2
+1*2
+2*2
+3*2
+4*2
+5*2
+6*2
+7*2
+8*2
+9*2
+10*2
+11*2
+12*2
+13*2
+14*2
+15*2
+16*2
+17*2
+18*2
+19*2
+18*2
+17*2
+16*2
+15*2
+14*2
+13*2
+12*2
+11*2
+10*2
+9*2
+8*2
+7*2
+6*2
+5*2
+4*2
+3*2
+2*2
+1*2
diff --git a/mods/MysticTextures/textures/blocks/Planks_0.png b/mods/MysticTextures/textures/blocks/Planks_0.png
new file mode 100644
index 0000000..6865145
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Planks_0.png differ
diff --git a/mods/MysticTextures/textures/blocks/Planks_1.png b/mods/MysticTextures/textures/blocks/Planks_1.png
new file mode 100644
index 0000000..4489600
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Planks_1.png differ
diff --git a/mods/MysticTextures/textures/blocks/Planks_2.png b/mods/MysticTextures/textures/blocks/Planks_2.png
new file mode 100644
index 0000000..569c8ed
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Planks_2.png differ
diff --git a/mods/MysticTextures/textures/blocks/Planks_3.png b/mods/MysticTextures/textures/blocks/Planks_3.png
new file mode 100644
index 0000000..1be53a0
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Planks_3.png differ
diff --git a/mods/MysticTextures/textures/blocks/Planks_4.png b/mods/MysticTextures/textures/blocks/Planks_4.png
new file mode 100644
index 0000000..d2fd43f
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Planks_4.png differ
diff --git a/mods/MysticTextures/textures/blocks/Planks_5.png b/mods/MysticTextures/textures/blocks/Planks_5.png
new file mode 100644
index 0000000..390e276
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Planks_5.png differ
diff --git a/mods/MysticTextures/textures/blocks/Planks_6.png b/mods/MysticTextures/textures/blocks/Planks_6.png
new file mode 100644
index 0000000..05cfff4
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Planks_6.png differ
diff --git a/mods/MysticTextures/textures/blocks/ReinforcedBricks_0.png b/mods/MysticTextures/textures/blocks/ReinforcedBricks_0.png
new file mode 100644
index 0000000..7227b71
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/ReinforcedBricks_0.png differ
diff --git a/mods/MysticTextures/textures/blocks/ReinforcedBricks_1.png b/mods/MysticTextures/textures/blocks/ReinforcedBricks_1.png
new file mode 100644
index 0000000..b4e73f4
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/ReinforcedBricks_1.png differ
diff --git a/mods/MysticTextures/textures/blocks/ReinforcedBricks_2.png b/mods/MysticTextures/textures/blocks/ReinforcedBricks_2.png
new file mode 100644
index 0000000..3136679
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/ReinforcedBricks_2.png differ
diff --git a/mods/MysticTextures/textures/blocks/ReinforcedBricks_3.png b/mods/MysticTextures/textures/blocks/ReinforcedBricks_3.png
new file mode 100644
index 0000000..1e50282
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/ReinforcedBricks_3.png differ
diff --git a/mods/MysticTextures/textures/blocks/ReinforcedBricks_4.png b/mods/MysticTextures/textures/blocks/ReinforcedBricks_4.png
new file mode 100644
index 0000000..fc70ed5
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/ReinforcedBricks_4.png differ
diff --git a/mods/MysticTextures/textures/blocks/ReinforcedBricks_5.png b/mods/MysticTextures/textures/blocks/ReinforcedBricks_5.png
new file mode 100644
index 0000000..816f971
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/ReinforcedBricks_5.png differ
diff --git a/mods/MysticTextures/textures/blocks/ReinforcedBricks_6.png b/mods/MysticTextures/textures/blocks/ReinforcedBricks_6.png
new file mode 100644
index 0000000..d125520
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/ReinforcedBricks_6.png differ
diff --git a/mods/MysticTextures/textures/blocks/ReinforcedBricks_7.png b/mods/MysticTextures/textures/blocks/ReinforcedBricks_7.png
new file mode 100644
index 0000000..1c2b08c
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/ReinforcedBricks_7.png differ
diff --git a/mods/MysticTextures/textures/blocks/ReinforcedGlass.png b/mods/MysticTextures/textures/blocks/ReinforcedGlass.png
new file mode 100644
index 0000000..e898769
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/ReinforcedGlass.png differ
diff --git a/mods/MysticTextures/textures/blocks/Stones_0.png b/mods/MysticTextures/textures/blocks/Stones_0.png
new file mode 100644
index 0000000..a854dad
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Stones_0.png differ
diff --git a/mods/MysticTextures/textures/blocks/Stones_1.png b/mods/MysticTextures/textures/blocks/Stones_1.png
new file mode 100644
index 0000000..d3abb31
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Stones_1.png differ
diff --git a/mods/MysticTextures/textures/blocks/Stones_10.png b/mods/MysticTextures/textures/blocks/Stones_10.png
new file mode 100644
index 0000000..f19395e
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Stones_10.png differ
diff --git a/mods/MysticTextures/textures/blocks/Stones_11.png b/mods/MysticTextures/textures/blocks/Stones_11.png
new file mode 100644
index 0000000..07dfb0d
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Stones_11.png differ
diff --git a/mods/MysticTextures/textures/blocks/Stones_12.png b/mods/MysticTextures/textures/blocks/Stones_12.png
new file mode 100644
index 0000000..1fd8321
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Stones_12.png differ
diff --git a/mods/MysticTextures/textures/blocks/Stones_13.png b/mods/MysticTextures/textures/blocks/Stones_13.png
new file mode 100644
index 0000000..9eaa3cb
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Stones_13.png differ
diff --git a/mods/MysticTextures/textures/blocks/Stones_2.png b/mods/MysticTextures/textures/blocks/Stones_2.png
new file mode 100644
index 0000000..8bfb244
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Stones_2.png differ
diff --git a/mods/MysticTextures/textures/blocks/Stones_3.png b/mods/MysticTextures/textures/blocks/Stones_3.png
new file mode 100644
index 0000000..110a6f2
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Stones_3.png differ
diff --git a/mods/MysticTextures/textures/blocks/Stones_4.png b/mods/MysticTextures/textures/blocks/Stones_4.png
new file mode 100644
index 0000000..dda76c8
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Stones_4.png differ
diff --git a/mods/MysticTextures/textures/blocks/Stones_5.png b/mods/MysticTextures/textures/blocks/Stones_5.png
new file mode 100644
index 0000000..5a19f18
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Stones_5.png differ
diff --git a/mods/MysticTextures/textures/blocks/Stones_6.png b/mods/MysticTextures/textures/blocks/Stones_6.png
new file mode 100644
index 0000000..61267ef
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Stones_6.png differ
diff --git a/mods/MysticTextures/textures/blocks/Stones_7.png b/mods/MysticTextures/textures/blocks/Stones_7.png
new file mode 100644
index 0000000..2cfa460
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Stones_7.png differ
diff --git a/mods/MysticTextures/textures/blocks/Stones_8..png b/mods/MysticTextures/textures/blocks/Stones_8..png
new file mode 100644
index 0000000..8054ba3
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Stones_8..png differ
diff --git a/mods/MysticTextures/textures/blocks/Stones_8.png b/mods/MysticTextures/textures/blocks/Stones_8.png
new file mode 100644
index 0000000..8054ba3
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Stones_8.png differ
diff --git a/mods/MysticTextures/textures/blocks/Stones_9..png b/mods/MysticTextures/textures/blocks/Stones_9..png
new file mode 100644
index 0000000..cdee735
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Stones_9..png differ
diff --git a/mods/MysticTextures/textures/blocks/Stones_9.png b/mods/MysticTextures/textures/blocks/Stones_9.png
new file mode 100644
index 0000000..cdee735
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/Stones_9.png differ
diff --git a/mods/MysticTextures/textures/blocks/TreasureGoldSide.png b/mods/MysticTextures/textures/blocks/TreasureGoldSide.png
new file mode 100644
index 0000000..2a3169e
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/TreasureGoldSide.png differ
diff --git a/mods/MysticTextures/textures/blocks/TreasureGoldTop.png b/mods/MysticTextures/textures/blocks/TreasureGoldTop.png
new file mode 100644
index 0000000..9d3c16d
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/TreasureGoldTop.png differ
diff --git a/mods/MysticTextures/textures/blocks/TreasureIronSide.png b/mods/MysticTextures/textures/blocks/TreasureIronSide.png
new file mode 100644
index 0000000..e9a2991
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/TreasureIronSide.png differ
diff --git a/mods/MysticTextures/textures/blocks/TreasureIronTop.png b/mods/MysticTextures/textures/blocks/TreasureIronTop.png
new file mode 100644
index 0000000..fac1d28
Binary files /dev/null and b/mods/MysticTextures/textures/blocks/TreasureIronTop.png differ
diff --git a/mods/MysticTextures/textures/items/item.AdamantineAxe.png b/mods/MysticTextures/textures/items/item.AdamantineAxe.png
new file mode 100644
index 0000000..d5b4159
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.AdamantineAxe.png differ
diff --git a/mods/MysticTextures/textures/items/item.AdamantineDust.png b/mods/MysticTextures/textures/items/item.AdamantineDust.png
new file mode 100644
index 0000000..1b1e229
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.AdamantineDust.png differ
diff --git a/mods/MysticTextures/textures/items/item.AdamantineHoe.png b/mods/MysticTextures/textures/items/item.AdamantineHoe.png
new file mode 100644
index 0000000..504828c
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.AdamantineHoe.png differ
diff --git a/mods/MysticTextures/textures/items/item.AdamantineIngot.png b/mods/MysticTextures/textures/items/item.AdamantineIngot.png
new file mode 100644
index 0000000..8e1b9d6
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.AdamantineIngot.png differ
diff --git a/mods/MysticTextures/textures/items/item.AdamantinePickaxe.png b/mods/MysticTextures/textures/items/item.AdamantinePickaxe.png
new file mode 100644
index 0000000..12b3e62
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.AdamantinePickaxe.png differ
diff --git a/mods/MysticTextures/textures/items/item.AdamantineShovel.png b/mods/MysticTextures/textures/items/item.AdamantineShovel.png
new file mode 100644
index 0000000..8170055
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.AdamantineShovel.png differ
diff --git a/mods/MysticTextures/textures/items/item.AdamantineSword.png b/mods/MysticTextures/textures/items/item.AdamantineSword.png
new file mode 100644
index 0000000..329ffce
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.AdamantineSword.png differ
diff --git a/mods/MysticTextures/textures/items/item.AgateGem.png b/mods/MysticTextures/textures/items/item.AgateGem.png
new file mode 100644
index 0000000..2d17430
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.AgateGem.png differ
diff --git a/mods/MysticTextures/textures/items/item.AirStaff.png b/mods/MysticTextures/textures/items/item.AirStaff.png
new file mode 100644
index 0000000..6affde6
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.AirStaff.png differ
diff --git a/mods/MysticTextures/textures/items/item.AmethystGem.png b/mods/MysticTextures/textures/items/item.AmethystGem.png
new file mode 100644
index 0000000..41a9759
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.AmethystGem.png differ
diff --git a/mods/MysticTextures/textures/items/item.BloodstoneAxe.png b/mods/MysticTextures/textures/items/item.BloodstoneAxe.png
new file mode 100644
index 0000000..eed6e55
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.BloodstoneAxe.png differ
diff --git a/mods/MysticTextures/textures/items/item.BloodstoneHoe.png b/mods/MysticTextures/textures/items/item.BloodstoneHoe.png
new file mode 100644
index 0000000..f13a712
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.BloodstoneHoe.png differ
diff --git a/mods/MysticTextures/textures/items/item.BloodstonePickaxe.png b/mods/MysticTextures/textures/items/item.BloodstonePickaxe.png
new file mode 100644
index 0000000..79a4f8b
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.BloodstonePickaxe.png differ
diff --git a/mods/MysticTextures/textures/items/item.BloodstoneShard.png b/mods/MysticTextures/textures/items/item.BloodstoneShard.png
new file mode 100644
index 0000000..21da3ba
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.BloodstoneShard.png differ
diff --git a/mods/MysticTextures/textures/items/item.BloodstoneShovel.png b/mods/MysticTextures/textures/items/item.BloodstoneShovel.png
new file mode 100644
index 0000000..a9eb00f
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.BloodstoneShovel.png differ
diff --git a/mods/MysticTextures/textures/items/item.BloodstoneSword.png b/mods/MysticTextures/textures/items/item.BloodstoneSword.png
new file mode 100644
index 0000000..29940f0
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.BloodstoneSword.png differ
diff --git a/mods/MysticTextures/textures/items/item.EarthStaff.png b/mods/MysticTextures/textures/items/item.EarthStaff.png
new file mode 100644
index 0000000..19b0272
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.EarthStaff.png differ
diff --git a/mods/MysticTextures/textures/items/item.EnergyStaff.png b/mods/MysticTextures/textures/items/item.EnergyStaff.png
new file mode 100644
index 0000000..7241b59
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.EnergyStaff.png differ
diff --git a/mods/MysticTextures/textures/items/item.FireStaff.png b/mods/MysticTextures/textures/items/item.FireStaff.png
new file mode 100644
index 0000000..2a58182
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.FireStaff.png differ
diff --git a/mods/MysticTextures/textures/items/item.GlassShard.png b/mods/MysticTextures/textures/items/item.GlassShard.png
new file mode 100644
index 0000000..27e3e36
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.GlassShard.png differ
diff --git a/mods/MysticTextures/textures/items/item.IridiumAxe.png b/mods/MysticTextures/textures/items/item.IridiumAxe.png
new file mode 100644
index 0000000..9f39f25
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.IridiumAxe.png differ
diff --git a/mods/MysticTextures/textures/items/item.IridiumHoe.png b/mods/MysticTextures/textures/items/item.IridiumHoe.png
new file mode 100644
index 0000000..12adbd6
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.IridiumHoe.png differ
diff --git a/mods/MysticTextures/textures/items/item.IridiumIngot.png b/mods/MysticTextures/textures/items/item.IridiumIngot.png
new file mode 100644
index 0000000..c21e30a
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.IridiumIngot.png differ
diff --git a/mods/MysticTextures/textures/items/item.IridiumNugget.png b/mods/MysticTextures/textures/items/item.IridiumNugget.png
new file mode 100644
index 0000000..ef752f4
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.IridiumNugget.png differ
diff --git a/mods/MysticTextures/textures/items/item.IridiumPickaxe.png b/mods/MysticTextures/textures/items/item.IridiumPickaxe.png
new file mode 100644
index 0000000..b096f2c
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.IridiumPickaxe.png differ
diff --git a/mods/MysticTextures/textures/items/item.IridiumShovel.png b/mods/MysticTextures/textures/items/item.IridiumShovel.png
new file mode 100644
index 0000000..1ac907e
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.IridiumShovel.png differ
diff --git a/mods/MysticTextures/textures/items/item.IridiumSword.png b/mods/MysticTextures/textures/items/item.IridiumSword.png
new file mode 100644
index 0000000..a7977f7
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.IridiumSword.png differ
diff --git a/mods/MysticTextures/textures/items/item.MithrilAxe.png b/mods/MysticTextures/textures/items/item.MithrilAxe.png
new file mode 100644
index 0000000..8b16236
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.MithrilAxe.png differ
diff --git a/mods/MysticTextures/textures/items/item.MithrilDust.png b/mods/MysticTextures/textures/items/item.MithrilDust.png
new file mode 100644
index 0000000..b497101
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.MithrilDust.png differ
diff --git a/mods/MysticTextures/textures/items/item.MithrilHoe.png b/mods/MysticTextures/textures/items/item.MithrilHoe.png
new file mode 100644
index 0000000..6c3c850
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.MithrilHoe.png differ
diff --git a/mods/MysticTextures/textures/items/item.MithrilIngot.png b/mods/MysticTextures/textures/items/item.MithrilIngot.png
new file mode 100644
index 0000000..081c4f5
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.MithrilIngot.png differ
diff --git a/mods/MysticTextures/textures/items/item.MithrilPickaxe.png b/mods/MysticTextures/textures/items/item.MithrilPickaxe.png
new file mode 100644
index 0000000..642d440
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.MithrilPickaxe.png differ
diff --git a/mods/MysticTextures/textures/items/item.MithrilShovel.png b/mods/MysticTextures/textures/items/item.MithrilShovel.png
new file mode 100644
index 0000000..a41f1c6
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.MithrilShovel.png differ
diff --git a/mods/MysticTextures/textures/items/item.MithrilSword.png b/mods/MysticTextures/textures/items/item.MithrilSword.png
new file mode 100644
index 0000000..e0e90a5
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.MithrilSword.png differ
diff --git a/mods/MysticTextures/textures/items/item.MysticPowder.png b/mods/MysticTextures/textures/items/item.MysticPowder.png
new file mode 100644
index 0000000..f910a23
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.MysticPowder.png differ
diff --git a/mods/MysticTextures/textures/items/item.ObsidianAxe.png b/mods/MysticTextures/textures/items/item.ObsidianAxe.png
new file mode 100644
index 0000000..52e7dcc
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.ObsidianAxe.png differ
diff --git a/mods/MysticTextures/textures/items/item.ObsidianHoe.png b/mods/MysticTextures/textures/items/item.ObsidianHoe.png
new file mode 100644
index 0000000..9037318
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.ObsidianHoe.png differ
diff --git a/mods/MysticTextures/textures/items/item.ObsidianPickaxe.png b/mods/MysticTextures/textures/items/item.ObsidianPickaxe.png
new file mode 100644
index 0000000..3bffbc0
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.ObsidianPickaxe.png differ
diff --git a/mods/MysticTextures/textures/items/item.ObsidianRod.png b/mods/MysticTextures/textures/items/item.ObsidianRod.png
new file mode 100644
index 0000000..24478d8
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.ObsidianRod.png differ
diff --git a/mods/MysticTextures/textures/items/item.ObsidianShard.png b/mods/MysticTextures/textures/items/item.ObsidianShard.png
new file mode 100644
index 0000000..390fd00
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.ObsidianShard.png differ
diff --git a/mods/MysticTextures/textures/items/item.ObsidianShovel.png b/mods/MysticTextures/textures/items/item.ObsidianShovel.png
new file mode 100644
index 0000000..5208ec8
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.ObsidianShovel.png differ
diff --git a/mods/MysticTextures/textures/items/item.ObsidianSword.png b/mods/MysticTextures/textures/items/item.ObsidianSword.png
new file mode 100644
index 0000000..1451910
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.ObsidianSword.png differ
diff --git a/mods/MysticTextures/textures/items/item.Satchel.png b/mods/MysticTextures/textures/items/item.Satchel.png
new file mode 100644
index 0000000..0ad6313
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.Satchel.png differ
diff --git a/mods/MysticTextures/textures/items/item.TopazGem.png b/mods/MysticTextures/textures/items/item.TopazGem.png
new file mode 100644
index 0000000..2fcc2bf
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.TopazGem.png differ
diff --git a/mods/MysticTextures/textures/items/item.TourmalineGem.png b/mods/MysticTextures/textures/items/item.TourmalineGem.png
new file mode 100644
index 0000000..a2fad17
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.TourmalineGem.png differ
diff --git a/mods/MysticTextures/textures/items/item.VerditeAxe.png b/mods/MysticTextures/textures/items/item.VerditeAxe.png
new file mode 100644
index 0000000..5503bbd
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.VerditeAxe.png differ
diff --git a/mods/MysticTextures/textures/items/item.VerditeDust.png b/mods/MysticTextures/textures/items/item.VerditeDust.png
new file mode 100644
index 0000000..2f8cfa6
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.VerditeDust.png differ
diff --git a/mods/MysticTextures/textures/items/item.VerditeHoe.png b/mods/MysticTextures/textures/items/item.VerditeHoe.png
new file mode 100644
index 0000000..fc05563
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.VerditeHoe.png differ
diff --git a/mods/MysticTextures/textures/items/item.VerditeIngot.png b/mods/MysticTextures/textures/items/item.VerditeIngot.png
new file mode 100644
index 0000000..bc2239c
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.VerditeIngot.png differ
diff --git a/mods/MysticTextures/textures/items/item.VerditePickaxe.png b/mods/MysticTextures/textures/items/item.VerditePickaxe.png
new file mode 100644
index 0000000..b16d4c6
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.VerditePickaxe.png differ
diff --git a/mods/MysticTextures/textures/items/item.VerditeShovel.png b/mods/MysticTextures/textures/items/item.VerditeShovel.png
new file mode 100644
index 0000000..e9bf4d6
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.VerditeShovel.png differ
diff --git a/mods/MysticTextures/textures/items/item.VerditeSword.png b/mods/MysticTextures/textures/items/item.VerditeSword.png
new file mode 100644
index 0000000..1359b5f
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.VerditeSword.png differ
diff --git a/mods/MysticTextures/textures/items/item.WaterStaff.png b/mods/MysticTextures/textures/items/item.WaterStaff.png
new file mode 100644
index 0000000..50c6610
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.WaterStaff.png differ
diff --git a/mods/MysticTextures/textures/items/item.bootsAdamantine.png b/mods/MysticTextures/textures/items/item.bootsAdamantine.png
new file mode 100644
index 0000000..ded7c8c
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.bootsAdamantine.png differ
diff --git a/mods/MysticTextures/textures/items/item.bootsIridium.png b/mods/MysticTextures/textures/items/item.bootsIridium.png
new file mode 100644
index 0000000..44f4980
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.bootsIridium.png differ
diff --git a/mods/MysticTextures/textures/items/item.bootsMithril.png b/mods/MysticTextures/textures/items/item.bootsMithril.png
new file mode 100644
index 0000000..c225ba9
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.bootsMithril.png differ
diff --git a/mods/MysticTextures/textures/items/item.bootsVerdite.png b/mods/MysticTextures/textures/items/item.bootsVerdite.png
new file mode 100644
index 0000000..bc1e181
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.bootsVerdite.png differ
diff --git a/mods/MysticTextures/textures/items/item.charge_0.png b/mods/MysticTextures/textures/items/item.charge_0.png
new file mode 100644
index 0000000..99344f4
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.charge_0.png differ
diff --git a/mods/MysticTextures/textures/items/item.charge_0.txt b/mods/MysticTextures/textures/items/item.charge_0.txt
new file mode 100644
index 0000000..e69de29
diff --git a/mods/MysticTextures/textures/items/item.charge_1.png b/mods/MysticTextures/textures/items/item.charge_1.png
new file mode 100644
index 0000000..50f0c46
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.charge_1.png differ
diff --git a/mods/MysticTextures/textures/items/item.charge_2.png b/mods/MysticTextures/textures/items/item.charge_2.png
new file mode 100644
index 0000000..95d15e3
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.charge_2.png differ
diff --git a/mods/MysticTextures/textures/items/item.charge_2.txt b/mods/MysticTextures/textures/items/item.charge_2.txt
new file mode 100644
index 0000000..e69de29
diff --git a/mods/MysticTextures/textures/items/item.charge_3.png b/mods/MysticTextures/textures/items/item.charge_3.png
new file mode 100644
index 0000000..db96aaf
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.charge_3.png differ
diff --git a/mods/MysticTextures/textures/items/item.charge_4.png b/mods/MysticTextures/textures/items/item.charge_4.png
new file mode 100644
index 0000000..3f182b3
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.charge_4.png differ
diff --git a/mods/MysticTextures/textures/items/item.chestplateAdamantine.png b/mods/MysticTextures/textures/items/item.chestplateAdamantine.png
new file mode 100644
index 0000000..0e823f7
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.chestplateAdamantine.png differ
diff --git a/mods/MysticTextures/textures/items/item.chestplateIridium.png b/mods/MysticTextures/textures/items/item.chestplateIridium.png
new file mode 100644
index 0000000..f25b7c4
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.chestplateIridium.png differ
diff --git a/mods/MysticTextures/textures/items/item.chestplateMithril.png b/mods/MysticTextures/textures/items/item.chestplateMithril.png
new file mode 100644
index 0000000..8aef09d
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.chestplateMithril.png differ
diff --git a/mods/MysticTextures/textures/items/item.chestplateVerdite.png b/mods/MysticTextures/textures/items/item.chestplateVerdite.png
new file mode 100644
index 0000000..bd33561
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.chestplateVerdite.png differ
diff --git a/mods/MysticTextures/textures/items/item.fruit_0.png b/mods/MysticTextures/textures/items/item.fruit_0.png
new file mode 100644
index 0000000..b980d6f
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.fruit_0.png differ
diff --git a/mods/MysticTextures/textures/items/item.fruit_1.png b/mods/MysticTextures/textures/items/item.fruit_1.png
new file mode 100644
index 0000000..cbd8855
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.fruit_1.png differ
diff --git a/mods/MysticTextures/textures/items/item.fruit_10.png b/mods/MysticTextures/textures/items/item.fruit_10.png
new file mode 100644
index 0000000..eac3280
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.fruit_10.png differ
diff --git a/mods/MysticTextures/textures/items/item.fruit_11.png b/mods/MysticTextures/textures/items/item.fruit_11.png
new file mode 100644
index 0000000..55dcb79
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.fruit_11.png differ
diff --git a/mods/MysticTextures/textures/items/item.fruit_2.png b/mods/MysticTextures/textures/items/item.fruit_2.png
new file mode 100644
index 0000000..5fe9dfb
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.fruit_2.png differ
diff --git a/mods/MysticTextures/textures/items/item.fruit_3.png b/mods/MysticTextures/textures/items/item.fruit_3.png
new file mode 100644
index 0000000..dc7ba8c
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.fruit_3.png differ
diff --git a/mods/MysticTextures/textures/items/item.fruit_4.png b/mods/MysticTextures/textures/items/item.fruit_4.png
new file mode 100644
index 0000000..4bdd69a
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.fruit_4.png differ
diff --git a/mods/MysticTextures/textures/items/item.fruit_5.png b/mods/MysticTextures/textures/items/item.fruit_5.png
new file mode 100644
index 0000000..59a8a3e
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.fruit_5.png differ
diff --git a/mods/MysticTextures/textures/items/item.fruit_6.png b/mods/MysticTextures/textures/items/item.fruit_6.png
new file mode 100644
index 0000000..e8a3c16
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.fruit_6.png differ
diff --git a/mods/MysticTextures/textures/items/item.fruit_7.png b/mods/MysticTextures/textures/items/item.fruit_7.png
new file mode 100644
index 0000000..ebf9fed
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.fruit_7.png differ
diff --git a/mods/MysticTextures/textures/items/item.fruit_8.png b/mods/MysticTextures/textures/items/item.fruit_8.png
new file mode 100644
index 0000000..abb14c8
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.fruit_8.png differ
diff --git a/mods/MysticTextures/textures/items/item.fruit_9.png b/mods/MysticTextures/textures/items/item.fruit_9.png
new file mode 100644
index 0000000..030fdbc
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.fruit_9.png differ
diff --git a/mods/MysticTextures/textures/items/item.helmetAdamantine.png b/mods/MysticTextures/textures/items/item.helmetAdamantine.png
new file mode 100644
index 0000000..7d3703f
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.helmetAdamantine.png differ
diff --git a/mods/MysticTextures/textures/items/item.helmetIridium.png b/mods/MysticTextures/textures/items/item.helmetIridium.png
new file mode 100644
index 0000000..9d5527c
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.helmetIridium.png differ
diff --git a/mods/MysticTextures/textures/items/item.helmetMithril.png b/mods/MysticTextures/textures/items/item.helmetMithril.png
new file mode 100644
index 0000000..bb2886d
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.helmetMithril.png differ
diff --git a/mods/MysticTextures/textures/items/item.helmetVerdite.png b/mods/MysticTextures/textures/items/item.helmetVerdite.png
new file mode 100644
index 0000000..6909f39
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.helmetVerdite.png differ
diff --git a/mods/MysticTextures/textures/items/item.leggingsAdamantine.png b/mods/MysticTextures/textures/items/item.leggingsAdamantine.png
new file mode 100644
index 0000000..a9dbe5a
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.leggingsAdamantine.png differ
diff --git a/mods/MysticTextures/textures/items/item.leggingsIridium.png b/mods/MysticTextures/textures/items/item.leggingsIridium.png
new file mode 100644
index 0000000..24887f6
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.leggingsIridium.png differ
diff --git a/mods/MysticTextures/textures/items/item.leggingsMithril.png b/mods/MysticTextures/textures/items/item.leggingsMithril.png
new file mode 100644
index 0000000..1850518
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.leggingsMithril.png differ
diff --git a/mods/MysticTextures/textures/items/item.leggingsVerdite.png b/mods/MysticTextures/textures/items/item.leggingsVerdite.png
new file mode 100644
index 0000000..f288ad0
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.leggingsVerdite.png differ
diff --git a/mods/MysticTextures/textures/items/item.shard_0.png b/mods/MysticTextures/textures/items/item.shard_0.png
new file mode 100644
index 0000000..cf3e655
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.shard_0.png differ
diff --git a/mods/MysticTextures/textures/items/item.shard_1.png b/mods/MysticTextures/textures/items/item.shard_1.png
new file mode 100644
index 0000000..898b0ec
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.shard_1.png differ
diff --git a/mods/MysticTextures/textures/items/item.shard_2.png b/mods/MysticTextures/textures/items/item.shard_2.png
new file mode 100644
index 0000000..0d09268
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.shard_2.png differ
diff --git a/mods/MysticTextures/textures/items/item.shard_3.png b/mods/MysticTextures/textures/items/item.shard_3.png
new file mode 100644
index 0000000..ddca8d8
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.shard_3.png differ
diff --git a/mods/MysticTextures/textures/items/item.shard_4.png b/mods/MysticTextures/textures/items/item.shard_4.png
new file mode 100644
index 0000000..c4c4f78
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.shard_4.png differ
diff --git a/mods/MysticTextures/textures/items/item.staff_0.png b/mods/MysticTextures/textures/items/item.staff_0.png
new file mode 100644
index 0000000..02bb26d
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.staff_0.png differ
diff --git a/mods/MysticTextures/textures/items/item.staff_1.png b/mods/MysticTextures/textures/items/item.staff_1.png
new file mode 100644
index 0000000..eac0e03
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.staff_1.png differ
diff --git a/mods/MysticTextures/textures/items/item.staff_2.png b/mods/MysticTextures/textures/items/item.staff_2.png
new file mode 100644
index 0000000..d4464e9
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.staff_2.png differ
diff --git a/mods/MysticTextures/textures/items/item.staff_3.png b/mods/MysticTextures/textures/items/item.staff_3.png
new file mode 100644
index 0000000..2b5ea51
Binary files /dev/null and b/mods/MysticTextures/textures/items/item.staff_3.png differ
diff --git a/mods/MysticTextures/textures/misc/airFX.png b/mods/MysticTextures/textures/misc/airFX.png
new file mode 100644
index 0000000..acaf35c
Binary files /dev/null and b/mods/MysticTextures/textures/misc/airFX.png differ
diff --git a/mods/MysticTextures/textures/misc/earthFX.png b/mods/MysticTextures/textures/misc/earthFX.png
new file mode 100644
index 0000000..29a7ebc
Binary files /dev/null and b/mods/MysticTextures/textures/misc/earthFX.png differ
diff --git a/mods/MysticTextures/textures/misc/energyFX.png b/mods/MysticTextures/textures/misc/energyFX.png
new file mode 100644
index 0000000..ee14858
Binary files /dev/null and b/mods/MysticTextures/textures/misc/energyFX.png differ
diff --git a/mods/MysticTextures/textures/misc/fireFX.png b/mods/MysticTextures/textures/misc/fireFX.png
new file mode 100644
index 0000000..9ddab16
Binary files /dev/null and b/mods/MysticTextures/textures/misc/fireFX.png differ
diff --git a/mods/MysticTextures/textures/misc/tornadoFX.png b/mods/MysticTextures/textures/misc/tornadoFX.png
new file mode 100644
index 0000000..81576ec
Binary files /dev/null and b/mods/MysticTextures/textures/misc/tornadoFX.png differ
diff --git a/mods/MysticTextures/textures/misc/waterFX.png b/mods/MysticTextures/textures/misc/waterFX.png
new file mode 100644
index 0000000..a037eaf
Binary files /dev/null and b/mods/MysticTextures/textures/misc/waterFX.png differ
diff --git a/mods/MysticTextures/textures/mob/MysticVillager.png b/mods/MysticTextures/textures/mob/MysticVillager.png
new file mode 100644
index 0000000..2f75b7c
Binary files /dev/null and b/mods/MysticTextures/textures/mob/MysticVillager.png differ
diff --git a/mods/powersouls/textures/misc/powersoul.png b/mods/powersouls/textures/misc/powersoul.png
new file mode 100644
index 0000000..e20a5d1
Binary files /dev/null and b/mods/powersouls/textures/misc/powersoul.png differ