SergOmarov

Untitled

Jan 24th, 2017
41
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Mod.EventHandler
  2.     public void postInit(FMLPostInitializationEvent e){
  3.             ArrayList<Object> recipes = (ArrayList<Object>) CraftingManager.getInstance().getRecipeList();
  4.             Iterator<Object> iter=recipes.iterator();
  5.             while(iter.hasNext()){
  6.                 Object i=iter.next();
  7.                 if(i instanceof
  8.                         IRecipe) {
  9.                     if (checkEquals(((IRecipe) i).getRecipeOutput(), new ItemStack(BuildCraftBuilders.quarryBlock)))
  10.                     recipes.remove(i);
  11.                 }
  12.  
  13.             }
  14.         try {
  15.             BCRegistry.INSTANCE.addCraftingRecipe(new ItemStack(BuildCraftBuilders.quarryBlock), new Object[] { "apa", "gig", "dDd",
  16.  
  17.                     Character.valueOf('a'), ic2.core.Ic2Items.lapotronCrystal,
  18.                     Character.valueOf('p'), ic2.core.Ic2Items.hvTransformer,
  19.                     Character.valueOf('g'), ic2.core.Ic2Items.miningLaser,
  20.                     Character.valueOf('i'), ic2.core.Ic2Items.advancedMachine,
  21.                     Character.valueOf('d'), new ItemStack((Block)Class.forName("crazypants.enderio.EnderIO").getField("blockTransceiver").get(null),1,0),
  22.                     Character.valueOf('D'), new ItemStack((Block)Class.forName("cofh.thermalexpansion.block.TEBlocks").getField("blockCell").get(null),4) });
  23.         } catch (IllegalAccessException e1) {
  24.             e1.printStackTrace();
  25.         } catch (NoSuchFieldException e1) {
  26.             e1.printStackTrace();
  27.         } catch (ClassNotFoundException e1) {
  28.             e1.printStackTrace();
  29.         }
  30.  
  31.     }
RAW Paste Data