Guest User

CommonProxy

a guest
Feb 10th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.63 KB | None | 0 0
  1. package TheMod;
  2.  
  3. import Armors.TheModArmors;
  4. import TheMod.CustomBlock.HarvestLevelEnum;
  5. import TheMod.CustomBlock.HarvestToolEnum;
  6. import TheMod.Mytools.CustomSword;
  7. import TheMod.Mytools.ItemModAxe;
  8. import TheMod.Mytools.ItemModPickaxe;
  9. import TheMod.Mytools.ItemModSpade;
  10. import TheModFood.TheModItemFood;
  11. import TheModFood.TheModItemFoodShiny;
  12. import net.minecraft.block.material.Material;
  13. import net.minecraft.init.Blocks;
  14. import net.minecraft.init.Items;
  15. import net.minecraft.item.ItemStack;
  16. import net.minecraft.item.crafting.CraftingManager;
  17. import net.minecraft.item.crafting.IRecipe;
  18. import net.minecraft.potion.Potion;
  19. import net.minecraft.potion.PotionEffect;
  20. import net.minecraftforge.fml.common.event.FMLInitializationEvent;
  21. import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
  22. import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
  23. import net.minecraftforge.fml.common.registry.GameRegistry;
  24.  
  25. import java.util.Iterator;
  26. import java.util.List;
  27.  
  28. public class CommonProxy {
  29.  
  30. public void init(FMLInitializationEvent e) {
  31. Main.Opal = new CustomItemShiny("Opal", Main.tabTheMod, 64);
  32. Main.Jade = new CustomItem("Jade", Main.tabTheMod, 64);
  33. Main.Mythril_Ingot = new CustomItem("Mythril_Ingot", Main.tabTheMod, 64);
  34. Main.Titanite_Ingot = new CustomItem("Titanite_Ingot", Main.tabTheMod, 64);
  35. Main.Obsidian_Ingot = new CustomItem("Obsidian_Ingot", Main.tabTheMod, 64);
  36. Main.Obsidian_Plate = new CustomItem("Obsidian_Plate", Main.tabTheMod, 64);
  37.  
  38. Main.Opal_Ore = new CustomBlock(Material.rock, "Opal_Ore", 15.0F, 600.0F, HarvestToolEnum.PICKAXE, HarvestLevelEnum.MYTHRIL, Main.tabTheMod, 1, 1, 5, 4, 0, 150, null, null, 0, true, true, true);
  39. Main.Mythril_Ore = new CustomBlock(Material.rock, "Mythril_Ore", 5.0F, 600.0F, HarvestToolEnum.PICKAXE, HarvestLevelEnum.DIAMOND, Main.tabTheMod, 1, 1, 6, 5, 0, 16, null, null, 0, true, false, false);
  40. Main.Titanite_Ore = new CustomBlock(Material.rock, "Titanite_Ore", 5.0F, 600.0F, HarvestToolEnum.PICKAXE, HarvestLevelEnum.DIAMOND, Main.tabTheMod, 1, 1, 7, 5, 0, 16, null, null, 0, true, false, false);
  41. Main.Jade_Ore = new CustomBlock(Material.rock, "Jade_Ore", 3.0F, 5.0F, HarvestToolEnum.PICKAXE, HarvestLevelEnum.IRON, Main.tabTheMod, 1, 4, 8, 15, 5, 150, null, null, 0, true, false, false);
  42.  
  43.  
  44. // Blocks
  45. Main.Obsidian_Block = new CustomBlock(Material.rock, "Obsidian_Block", 4.0F, 10.0F, HarvestToolEnum.PICKAXE, HarvestLevelEnum.WOOD, Main.tabTheMod, 1);
  46. Main.Opal_Block = new CustomBlock(Material.iron, "Opal_Block", 4.0F, 10.0F, HarvestToolEnum.PICKAXE, HarvestLevelEnum.WOOD, Main.tabTheMod, 1);
  47. Main.Jade_Block = new CustomBlock(Material.iron, "Jade_Block", 4.0F, 10.0F, HarvestToolEnum.PICKAXE, HarvestLevelEnum.WOOD, Main.tabTheMod, 1);
  48. Main.Mythril_Block = new CustomBlock(Material.iron, "Mythril_Block", 4.0F, 10.0F, HarvestToolEnum.PICKAXE, HarvestLevelEnum.WOOD, Main.tabTheMod, 1);
  49. Main.Titanite_Block = new CustomBlock(Material.iron, "Titanite_Block", 4.0F, 10.0F, HarvestToolEnum.PICKAXE, HarvestLevelEnum.WOOD, Main.tabTheMod, 1);
  50.  
  51. // Tools
  52. Main.Opal_Sword = new CustomSword("Opal_Sword", Main.OPAL, Main.tabTheMod, 1);
  53. Main.Mythril_Sword = new CustomSword("Mythril_Sword", Main.MYTHRIL, Main.tabTheMod, 1);
  54. Main.Titanite_Sword = new CustomSword("Titanite_Sword", Main.TITANITE, Main.tabTheMod, 1);
  55. Main.Jade_Sword = new CustomSword("Jade_Sword", Main.JADE, Main.tabTheMod, 1);
  56. Main.Obsidian_Sword = new CustomSword("Obsidian_Sword", Main.OBSIDIAN, Main.tabTheMod, 1);
  57.  
  58. Main.Opal_Pickaxe = new ItemModPickaxe("Opal_Pickaxe", Main.OPAL, Main.tabTheMod, 1);
  59. Main.Mythril_Pickaxe = new ItemModPickaxe("Mythril_Pickaxe", Main.MYTHRIL, Main.tabTheMod, 1);
  60. Main.Titanite_Pickaxe = new ItemModPickaxe("Titanite_Pickaxe", Main.TITANITE, Main.tabTheMod, 1);
  61. Main.Jade_Pickaxe = new ItemModPickaxe("Jade_Pickaxe", Main.JADE, Main.tabTheMod, 1);
  62. Main.Obsidian_Pickaxe = new ItemModPickaxe("Obsidian_Pickaxe", Main.OBSIDIAN, Main.tabTheMod, 1);
  63.  
  64. Main.Opal_Axe = new ItemModAxe("Opal_Axe", Main.OPAL, Main.tabTheMod, 1);
  65. Main.Mythril_Axe = new ItemModAxe("Mythril_Axe", Main.MYTHRIL, Main.tabTheMod, 1);
  66. Main.Titanite_Axe = new ItemModAxe("Titanite_Axe", Main.TITANITE, Main.tabTheMod, 1);
  67. Main.Jade_Axe = new ItemModAxe("Jade_Axe", Main.JADE, Main.tabTheMod, 1);
  68. Main.Obsidian_Axe = new ItemModAxe("Obsidian_Axe", Main.OBSIDIAN, Main.tabTheMod, 1);
  69.  
  70. Main.Opal_Spade = new ItemModSpade("Opal_Spade", Main.OPAL, Main.tabTheMod, 1);
  71. Main.Mythril_Spade = new ItemModSpade("Mythril_Spade", Main.MYTHRIL, Main.tabTheMod, 1);
  72. Main.Titanite_Spade = new ItemModSpade("Titanite_Spade", Main.TITANITE, Main.tabTheMod, 1);
  73. Main.Jade_Spade = new ItemModSpade("Jade_Spade", Main.JADE, Main.tabTheMod, 1);
  74. Main.Obsidian_Spade = new ItemModSpade("Obsidian_Spade", Main.OBSIDIAN, Main.tabTheMod, 1);
  75. // Armors
  76. Main.Opal_Helmet = new TheModArmors("Opal_Helmet", Main.OPAL1, 1, 0, Main.tabTheMod);
  77. Main.Opal_Chestplate = new TheModArmors("Opal_Chestplate", Main.OPAL1, 1, 1, Main.tabTheMod);
  78. Main.Opal_Leggings = new TheModArmors("Opal_Leggings", Main.OPAL1, 2, 2, Main.tabTheMod);
  79. Main.Opal_Boots = new TheModArmors("Opal_Boots", Main.OPAL1, 1, 3, Main.tabTheMod);
  80.  
  81. Main.Mythril_Helmet = new TheModArmors("Mythril_Helmet", Main.MYTHRIL1, 1, 0, Main.tabTheMod);
  82. Main.Mythril_Chestplate = new TheModArmors("Mythril_Chestplate", Main.MYTHRIL1, 1, 1, Main.tabTheMod);
  83. Main.Mythril_Leggings = new TheModArmors("Mythril_Leggings", Main.MYTHRIL1, 2, 2, Main.tabTheMod);
  84. Main.Mythril_Boots = new TheModArmors("Mythril_Boots", Main.MYTHRIL1, 1, 3, Main.tabTheMod);
  85.  
  86. Main.Titanite_Helmet = new TheModArmors("Titanite_Helmet", Main.TITANITE1, 1, 0, Main.tabTheMod);
  87. Main.Titanite_Chestplate = new TheModArmors("Titanite_Chestplate", Main.TITANITE1, 1, 1, Main.tabTheMod);
  88. Main.Titanite_Leggings = new TheModArmors("Titanite_Leggings", Main.TITANITE1, 2, 2, Main.tabTheMod);
  89. Main.Titanite_Boots = new TheModArmors("Titanite_Boots", Main.TITANITE1, 1, 3, Main.tabTheMod);
  90.  
  91. Main.Jade_Helmet = new TheModArmors("Jade_Helmet", Main.JADE1, 1, 0, Main.tabTheMod);
  92. Main.Jade_Chestplate = new TheModArmors("Jade_Chestplate", Main.JADE1, 1, 1, Main.tabTheMod);
  93. Main.Jade_Leggings = new TheModArmors("Jade_Leggings", Main.JADE1, 2, 2, Main.tabTheMod);
  94. Main.Jade_Boots = new TheModArmors("Jade_Boots", Main.JADE1, 1, 3, Main.tabTheMod);
  95.  
  96. Main.Obsidian_Helmet = new TheModArmors("Obsidian_Helmet", Main.OBSIDIAN1, 1, 0, Main.tabTheMod);
  97. Main.Obsidian_Chestplate = new TheModArmors("Obsidian_Chestplate", Main.OBSIDIAN1, 1, 1, Main.tabTheMod);
  98. Main.Obsidian_Leggings = new TheModArmors("Obsidian_Leggings", Main.OBSIDIAN1, 2, 2, Main.tabTheMod);
  99. Main.Obsidian_Boots = new TheModArmors("Obsidian_Boots", Main.OBSIDIAN1, 1, 3, Main.tabTheMod);
  100. // ItemFoods
  101. Main.Flour = new CustomItem("Flour", Main.tabTheMod, 64);
  102. Main.Toast = new TheModItemFood("Toast", 6, 1.4F, false, Main.tabTheMod);
  103. Main.ObsidianApple = new TheModItemFoodShiny("ObsidianApple", 6, 0.4F, false, Main.tabTheMod,
  104. new PotionEffect(Potion.resistance.id, 9600, 0),
  105. new PotionEffect(Potion.fireResistance.id, 19200, 0))
  106. .setAlwaysEdible();
  107.  
  108. Main.JadeApple = new TheModItemFoodShiny("JadeApple", 6, 0.4F, false, Main.tabTheMod,
  109. new PotionEffect(Potion.digSpeed.id, 6000, 1), new PotionEffect(Potion.moveSpeed.id, 6000, 1),
  110. new PotionEffect(Potion.fireResistance.id, 6000, 1), new PotionEffect(Potion.nightVision.id, 6000, 1),
  111. new PotionEffect(Potion.weakness.id, 6000, 6)).setAlwaysEdible();
  112.  
  113. Main.OpalApple = new TheModItemFoodShiny("OpalApple", 20, 1.0F, false, Main.tabTheMod,
  114. new PotionEffect(Potion.absorption.id, 2400, 0), new PotionEffect(Potion.fireResistance.id, 19200, 0),
  115. new PotionEffect(Potion.moveSpeed.id, 7200, 1), new PotionEffect(Potion.regeneration.id, 240, 2),
  116. new PotionEffect(Potion.resistance.id, 2400, 0)).setAlwaysEdible();
  117.  
  118. Main.Nuke = new TNT("Nuke", TheModMaterial.nuke);
  119. Main.IceTnt = new TNT("IceTnt", TheModMaterial.IceTnt);
  120.  
  121. Main.Titanite_Arrow = new CustomItem("Titanite_Arrow", Main.tabTheMod, 64);
  122.  
  123. Main.Obsidian_Stick = new CustomItem("Obsidian_Stick", Main.tabTheMod, 64);
  124.  
  125. //------------------------------------------------------------------------------------------------------//
  126. // CRAFT RECIPES //
  127. //------------------------------------------------------------------------------------------------------//
  128.  
  129. GameRegistry.addRecipe(new ItemStack(Items.emerald, 1), new Object[] { "###", "EIE", "###", '#', Main.Jade, 'I', Items.diamond, 'E', Items.ender_eye });
  130. GameRegistry.addRecipe(new ItemStack(Items.experience_bottle, 2), new Object[] { " # ", "#I#", " C ", '#', Main.Jade, 'I', Items.emerald, 'C', Items.glass_bottle });
  131. GameRegistry.addRecipe(new ItemStack(Main.Obsidian_Block, 1), new Object[] { "##", "##", '#', Main.Obsidian_Plate });
  132. GameRegistry.addRecipe(new ItemStack(Main.Obsidian_Plate, 1), new Object[] { "#", "#", '#', Main.Obsidian_Ingot });
  133. GameRegistry.addRecipe(new ItemStack(Main.Obsidian_Stick, 4), new Object[] { " # ", " # ", '#', Main.Obsidian_Plate});
  134.  
  135. GameRegistry.addRecipe(new ItemStack(Main.Opal_Block, 1), new Object[] { "###", "###", "###", '#', Main.Opal });
  136. GameRegistry.addRecipe(new ItemStack(Main.Jade_Block, 1), new Object[] { "###", "###", "###", '#', Main.Jade });
  137. GameRegistry.addRecipe(new ItemStack(Main.Titanite_Block, 1), new Object[] { "###", "###", "###", '#', Main.Titanite_Ingot });
  138. GameRegistry.addRecipe(new ItemStack(Main.Mythril_Block, 1), new Object[] { "###", "###", "###", '#', Main.Mythril_Ingot });
  139. GameRegistry.addRecipe(new ItemStack(Main.Obsidian_Block, 1), new Object[] { "###", "###", "###", '#', Main.Obsidian_Plate });
  140.  
  141.  
  142. GameRegistry.addRecipe(new ItemStack(Main.Flour, 1),
  143. new Object[] { "###", "###", '#', Items.wheat });
  144.  
  145. //---------------------------------------------//
  146. // OPAL ARMOR //
  147. //---------------------------------------------//
  148.  
  149. GameRegistry.addRecipe(new ItemStack(Main.Opal_Helmet, 1), new Object[] { "###", "# #", '#', Main.Opal });
  150. GameRegistry.addRecipe(new ItemStack(Main.Opal_Chestplate, 1), new Object[] { "# #", "###", "###", '#', Main.Opal });
  151. GameRegistry.addRecipe(new ItemStack(Main.Opal_Leggings, 1), new Object[] { "###", "# #", "# #", '#', Main.Opal });
  152. GameRegistry.addRecipe(new ItemStack(Main.Opal_Boots, 1), new Object[] { "# #", "# #", '#', Main.Opal });
  153.  
  154. //-------------------OPAL TOOLS-------------------//
  155.  
  156. GameRegistry.addRecipe(new ItemStack(Main.Opal_Sword, 1), new Object[] { "#", "#", "I", '#', Main.Opal, 'I', Main.Obsidian_Stick });
  157. GameRegistry.addRecipe(new ItemStack(Main.Opal_Pickaxe, 1), new Object[] { "###", " I ", " I ", '#', Main.Opal, 'I', Main.Obsidian_Stick });
  158. GameRegistry.addRecipe(new ItemStack(Main.Opal_Spade, 1), new Object[] { "#", "I", "I", '#', Main.Opal, 'I', Main.Obsidian_Stick });
  159. GameRegistry.addRecipe(new ItemStack(Main.Opal_Axe, 1), new Object[] { "## ", "#I ", " I ", '#', Main.Opal, 'I', Main.Obsidian_Stick });
  160. GameRegistry.addRecipe(new ItemStack(Main.Opal_Axe, 1), new Object[] { " ##", " I#", " I ", '#', Main.Opal, 'I', Main.Obsidian_Stick });
  161.  
  162. //---------------------------------------------//
  163. // JADE ARMOR //
  164. //---------------------------------------------//
  165.  
  166. GameRegistry.addRecipe(new ItemStack(Main.Jade_Helmet, 1), new Object[] { "###", "# #", '#', Main.Jade });
  167. GameRegistry.addRecipe(new ItemStack(Main.Jade_Chestplate, 1), new Object[] { "# #", "###", "###", '#', Main.Jade });
  168. GameRegistry.addRecipe(new ItemStack(Main.Jade_Leggings, 1), new Object[] { "###", "# #", "# #", '#', Main.Jade });
  169. GameRegistry.addRecipe(new ItemStack(Main.Jade_Boots, 1), new Object[] { "# #", "# #", '#', Main.Jade });
  170.  
  171. //-------------------JADE TOOLS-------------------//
  172.  
  173. GameRegistry.addRecipe(new ItemStack(Main.Jade_Sword, 1), new Object[] { "#", "#", "I", '#', Main.Jade, 'I', Items.stick });
  174. GameRegistry.addRecipe(new ItemStack(Main.Jade_Pickaxe, 1), new Object[] { "###", " I ", " I ", '#', Main.Jade, 'I', Items.stick });
  175. GameRegistry.addRecipe(new ItemStack(Main.Jade_Spade, 1), new Object[] { "#", "I", "I", '#', Main.Jade, 'I', Items.stick });
  176. GameRegistry.addRecipe(new ItemStack(Main.Jade_Axe, 1), new Object[] { "## ", "#I ", " I ", '#', Main.Jade, 'I', Items.stick });
  177. GameRegistry.addRecipe(new ItemStack(Main.Jade_Axe, 1), new Object[] { " ##", " I#", " I ", '#', Main.Jade, 'I', Items.stick });
  178.  
  179. //---------------------------------------------//
  180. // MYTHRIL ARMOR //
  181. //---------------------------------------------//
  182.  
  183. GameRegistry.addRecipe(new ItemStack(Main.Mythril_Helmet, 1), new Object[] { "###", "# #", '#', Main.Mythril_Ingot });
  184. GameRegistry.addRecipe(new ItemStack(Main.Mythril_Chestplate, 1), new Object[] { "# #", "###", "###", '#', Main.Mythril_Ingot });
  185. GameRegistry.addRecipe(new ItemStack(Main.Mythril_Leggings, 1), new Object[] { "###", "# #", "# #", '#', Main.Mythril_Ingot });
  186. GameRegistry.addRecipe(new ItemStack(Main.Mythril_Boots, 1), new Object[] { "# #", "# #", '#', Main.Mythril_Ingot });
  187.  
  188. //-------------------MYTHRIL TOOLS-------------------//
  189.  
  190. GameRegistry.addRecipe(new ItemStack(Main.Mythril_Sword, 1), new Object[] { "#", "#", "I", '#', Main.Mythril_Ingot, 'I', Main.Obsidian_Stick });
  191. GameRegistry.addRecipe(new ItemStack(Main.Mythril_Pickaxe, 1), new Object[] { "###", " I ", " I ", '#', Main.Mythril_Ingot, 'I', Main.Obsidian_Stick });
  192. GameRegistry.addRecipe(new ItemStack(Main.Mythril_Spade, 1), new Object[] { "#", "I", "I", '#', Main.Mythril_Ingot, 'I', Main.Obsidian_Stick });
  193. GameRegistry.addRecipe(new ItemStack(Main.Mythril_Axe, 1), new Object[] { "## ", "#I ", " I ", '#', Main.Mythril_Ingot, 'I', Main.Obsidian_Stick });
  194. GameRegistry.addRecipe(new ItemStack(Main.Mythril_Axe, 1), new Object[] { " ##", " I#", " I ", '#', Main.Mythril_Ingot, 'I', Main.Obsidian_Stick });
  195.  
  196. //---------------------------------------------//
  197. // TITANITE ARMOR //
  198. //---------------------------------------------//
  199.  
  200. GameRegistry.addRecipe(new ItemStack(Main.Titanite_Helmet, 1), new Object[] { "###", "# #", '#', Main.Titanite_Ingot });
  201. GameRegistry.addRecipe(new ItemStack(Main.Titanite_Chestplate, 1), new Object[] { "# #", "###", "###", '#', Main.Titanite_Ingot });
  202. GameRegistry.addRecipe(new ItemStack(Main.Titanite_Leggings, 1), new Object[] { "###", "# #", "# #", '#', Main.Titanite_Ingot });
  203. GameRegistry.addRecipe(new ItemStack(Main.Titanite_Boots, 1), new Object[] { "# #", "# #", '#', Main.Titanite_Ingot });
  204.  
  205. //-------------------TITANITE TOOLS-------------------//
  206.  
  207. GameRegistry.addRecipe(new ItemStack(Main.Titanite_Sword, 1), new Object[] { "#", "#", "I", '#', Main.Titanite_Ingot, 'I', Main.Obsidian_Stick });
  208. GameRegistry.addRecipe(new ItemStack(Main.Titanite_Pickaxe, 1), new Object[] { "###", " I ", " I ", '#', Main.Titanite_Ingot, 'I', Main.Obsidian_Stick });
  209. GameRegistry.addRecipe(new ItemStack(Main.Titanite_Spade, 1), new Object[] { "#", "I", "I", '#', Main.Titanite_Ingot, 'I', Main.Obsidian_Stick });
  210. GameRegistry.addRecipe(new ItemStack(Main.Titanite_Axe, 1), new Object[] { "## ", "#I ", " I ", '#', Main.Titanite_Ingot, 'I', Main.Obsidian_Stick });
  211. GameRegistry.addRecipe(new ItemStack(Main.Titanite_Axe, 1), new Object[] { " ##", " I#", " I ", '#', Main.Titanite_Ingot, 'I', Main.Obsidian_Stick });
  212.  
  213. //---------------------------------------------//
  214. // OBSIDIAN ARMOR //
  215. //---------------------------------------------//
  216.  
  217. GameRegistry.addRecipe(new ItemStack(Main.Obsidian_Helmet, 1), new Object[] { "###", "# #", '#', Main.Obsidian_Plate });
  218. GameRegistry.addRecipe(new ItemStack(Main.Obsidian_Chestplate, 1), new Object[] { "# #", "###", "###", '#', Main.Obsidian_Plate });
  219. GameRegistry.addRecipe(new ItemStack(Main.Obsidian_Leggings, 1), new Object[] { "###", "# #", "# #", '#', Main.Obsidian_Plate });
  220. GameRegistry.addRecipe(new ItemStack(Main.Obsidian_Boots, 1), new Object[] { "# #", "# #", '#', Main.Obsidian_Plate });
  221.  
  222. //-------------------OBSIDIAN TOOLS-------------------//
  223.  
  224. GameRegistry.addRecipe(new ItemStack(Main.Obsidian_Sword, 1), new Object[] { "#", "#", "I", '#', Main.Obsidian_Plate, 'I', Main.Obsidian_Stick });
  225. GameRegistry.addRecipe(new ItemStack(Main.Obsidian_Pickaxe, 1), new Object[] { "###", " I ", " I ", '#', Main.Obsidian_Plate, 'I', Main.Obsidian_Stick });
  226. GameRegistry.addRecipe(new ItemStack(Main.Obsidian_Spade, 1), new Object[] { "#", "I", "I", '#', Main.Obsidian_Plate, 'I', Main.Obsidian_Stick });
  227. GameRegistry.addRecipe(new ItemStack(Main.Obsidian_Axe, 1), new Object[] { "## ", "#I ", " I ", '#', Main.Obsidian_Plate, 'I', Main.Obsidian_Stick });
  228. GameRegistry.addRecipe(new ItemStack(Main.Obsidian_Axe, 1), new Object[] { " ##", " I#", " I ", '#', Main.Obsidian_Plate, 'I', Main.Obsidian_Stick });
  229.  
  230. //---------------------------------------------//
  231. // FURNACE RECIPES //
  232. //---------------------------------------------//
  233.  
  234. GameRegistry.addSmelting(Main.Opal_Ore, new ItemStack(Main.Opal), 50.0F);
  235. GameRegistry.addSmelting(Main.Mythril_Ore, new ItemStack(Main.Mythril_Ingot), 3.0F);
  236. GameRegistry.addSmelting(Main.Titanite_Ore, new ItemStack(Main.Titanite_Ingot), 3.0F);
  237. GameRegistry.addSmelting(Main.Jade_Ore, new ItemStack(Main.Jade), 0.5F);
  238. GameRegistry.addSmelting(Blocks.obsidian, new ItemStack(Main.Obsidian_Ingot), 2.0F);
  239. GameRegistry.addSmelting(Main.Flour, new ItemStack(Main.Toast), 0.0F);
  240.  
  241. //---------------------------------------------//
  242. // REMOVE VANILLAS RECIPES //
  243. //---------------------------------------------//
  244.  
  245. List<IRecipe> recipes = CraftingManager.getInstance().getRecipeList();
  246.  
  247. Iterator<IRecipe> Leash = recipes.iterator();
  248.  
  249. while (Leash.hasNext()) {
  250. ItemStack is = Leash.next().getRecipeOutput();
  251. if (is != null && is.getItem() == Items.golden_apple)
  252. Leash.remove();
  253. }
  254.  
  255. }
  256.  
  257. public void preInit(FMLPreInitializationEvent e) {
  258.  
  259. }
  260.  
  261. public void postInit(FMLPostInitializationEvent e) {
  262.  
  263. }
  264.  
  265. }
Add Comment
Please, Sign In to add comment