Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Mod.EventHandler
- public void postInit(FMLPostInitializationEvent e){
- ArrayList<Object> recipes = (ArrayList<Object>) CraftingManager.getInstance().getRecipeList();
- Iterator<Object> iter=recipes.iterator();
- while(iter.hasNext()){
- Object i=iter.next();
- if(i instanceof
- IRecipe) {
- if (checkEquals(((IRecipe) i).getRecipeOutput(), new ItemStack(BuildCraftBuilders.quarryBlock)))
- recipes.remove(i);
- }
- }
- try {
- BCRegistry.INSTANCE.addCraftingRecipe(new ItemStack(BuildCraftBuilders.quarryBlock), new Object[] { "apa", "gig", "dDd",
- Character.valueOf('a'), ic2.core.Ic2Items.lapotronCrystal,
- Character.valueOf('p'), ic2.core.Ic2Items.hvTransformer,
- Character.valueOf('g'), ic2.core.Ic2Items.miningLaser,
- Character.valueOf('i'), ic2.core.Ic2Items.advancedMachine,
- Character.valueOf('d'), new ItemStack((Block)Class.forName("crazypants.enderio.EnderIO").getField("blockTransceiver").get(null),1,0),
- Character.valueOf('D'), new ItemStack((Block)Class.forName("cofh.thermalexpansion.block.TEBlocks").getField("blockCell").get(null),4) });
- } catch (IllegalAccessException e1) {
- e1.printStackTrace();
- } catch (NoSuchFieldException e1) {
- e1.printStackTrace();
- } catch (ClassNotFoundException e1) {
- e1.printStackTrace();
- }
- }
Add Comment
Please, Sign In to add comment