public static void applyUsagesForMaterials(ItemStack aMat, ItemStack aOutput) {
if (aMat == null || aOutput == null) return;
ItemStack tMt2 = new ItemStack(Item.stick, 1), tStack;
ArrayList<ItemStack> tList;
if (aOutput.stackSize < 1) aOutput.stackSize = 1;
boolean bSawdust = aOutput.isItemEqual(GT_MetaItem_SmallDust.instance.getStack(15, 1));
if (!aMat.isItemEqual(new ItemStack(Item.ingotIron, 1))) {
if ((tStack = GT_ModHandler.getRecipeOutput(new ItemStack[] {aMat, null, aMat, null, aMat, null, null, null, null})) != null)
if (tStack.isItemEqual(new ItemStack(Item.bucketEmpty, 1)))
GT_ModHandler.removeRecipe(new ItemStack[] {aMat, null, aMat, null, aMat, null, null, null, null});
if ((tStack = GT_ModHandler.getRecipeOutput(new ItemStack[] {null, null, null, aMat, null, aMat, null, aMat, null})) != null)
if (tStack.isItemEqual(new ItemStack(Item.bucketEmpty, 1)))
GT_ModHandler.removeRecipe(new ItemStack[] {null, null, null, aMat, null, aMat, null, aMat, null});
if ((tStack = GT_ModHandler.getRecipeOutput(new ItemStack[] {aMat, null, aMat, aMat, aMat, aMat, null, null, null})) != null)
if (tStack.isItemEqual(new ItemStack(Item.minecartEmpty, 1)))
GT_ModHandler.removeRecipe(new ItemStack[] {aMat, null, aMat, aMat, aMat, aMat, null, null, null});
if ((tStack = GT_ModHandler.getRecipeOutput(new ItemStack[] {null, null, null, aMat, null, aMat, aMat, aMat, aMat})) != null)
if (tStack.isItemEqual(new ItemStack(Item.minecartEmpty, 1)))
GT_ModHandler.removeRecipe(new ItemStack[] {null, null, null, aMat, null, aMat, aMat, aMat, aMat});
}
int aOutItem = aOutput.itemID, aOutDamage = aOutput.getItemDamage(), aOutAmount = aOutput.stackSize;
if (GT_Mod.instance.mToolArmorMaceration) {
if (null != (tList = GT_ModHandler.getRecipeOutputs(new ItemStack[] {aMat, aMat, aMat, aMat, null, aMat, null, null, null}))) for (int i = 0; i < tList.size(); i++) GT_ModHandler.addPulverisationRecipe(tList.get(i), new ItemStack(aOutItem, 5*aOutAmount+(bSawdust?0:0), aOutDamage));
if (null != (tList = GT_ModHandler.getRecipeOutputs(new ItemStack[] {aMat, null, aMat, aMat, aMat, aMat, aMat, aMat, aMat}))) for (int i = 0; i < tList.size(); i++) GT_ModHandler.addPulverisationRecipe(tList.get(i), new ItemStack(aOutItem, 8*aOutAmount+(bSawdust?0:0), aOutDamage));
...
...
// A crapton of diffrent Recipes, which are typical for Tools and Armor. I had to cut it as I wouldve hit the 10000 Character Limit
...
...
if (null != (tList = GT_ModHandler.getRecipeOutputs(new ItemStack[] {aMat, tMt2, null, null, null, null, null, null, null}))) for (int i = 0; i < tList.size(); i++) GT_ModHandler.addPulverisationRecipe(tList.get(i), new ItemStack(aOutItem, 1*aOutAmount+(bSawdust?2:0), aOutDamage));
if (null != (tList = GT_ModHandler.getRecipeOutputs(new ItemStack[] {aMat, null, null, tMt2, null, null, null, null, null}))) for (int i = 0; i < tList.size(); i++) GT_ModHandler.addPulverisationRecipe(tList.get(i), new ItemStack(aOutItem, 1*aOutAmount+(bSawdust?2:0), aOutDamage));
}
}
Display More