Package powercrystals.minefactoryreloaded.modhelpers

Examples of powercrystals.minefactoryreloaded.modhelpers.FertilizableCropReflection


          int blockId = ((Block)mod.getField("pam" + flower.toLowerCase() + "flowerCrop").get(null)).blockID;
          Method fertilize = Class.forName("mods.PamWeeeFlowers.BlockPamFlowerCrop").getMethod("fertilize", World.class, int.class, int.class, int.class);
         
          MFRRegistry.registerPlantable(new PlantableCropPlant(seedId, blockId));
          MFRRegistry.registerHarvestable(new HarvestablePams(blockId));
          MFRRegistry.registerFertilizable(new FertilizableCropReflection(blockId, fertilize, 7));
        }
      }
      catch(ClassNotFoundException x)
      {
        FMLLog.warning("Unable to load Pam support for Weee! Flowers even though Weee! FLowers was present");
View Full Code Here


      else
      {
        MFRRegistry.registerHarvestable(new HarvestablePams(blockIdCrop));
      }
     
      MFRRegistry.registerFertilizable(new FertilizableCropReflection(blockIdCrop,
          Class.forName(String.format(isPerennial ? "mods.PamHarvestCraft.BlockPamRegrowCrop" : "mods.PamHarvestCraft.BlockPamCrop")).getMethod("fertilize", World.class, int.class, int.class, int.class), 7));
    }
    catch(ClassNotFoundException x)
    {
      FMLLog.warning("Unable to load Pam support for %s", modName);
View Full Code Here

      MFRRegistry.registerGrinderBlacklist(pharaoh);
     
      MFRRegistry.registerPlantable(new PlantableStandard(atumSaplingId, atumSaplingId));
      MFRRegistry.registerPlantable(new PlantableStandard(flaxSeedsId, flaxId));
     
      MFRRegistry.registerFertilizable(new FertilizableCropReflection(flaxId, atumFlaxFertilize, 5));
      MFRRegistry.registerFertilizable(new FertilizableSaplingReflection(atumSaplingId, atumSaplingGrowTree));
     
      MFRRegistry.registerHarvestable(new HarvestableStandard(atumLogId, HarvestType.Tree));
      MFRRegistry.registerHarvestable(new HarvestableTreeLeaves(atumLeavesId));
      MFRRegistry.registerHarvestable(new HarvestableStandard(flaxId, HarvestType.Normal));
View Full Code Here

        seedId = ((Item)mod.getField("seed" + crop).get(null)).itemID;
        blockId = ((Block)mod.getField("crop" + crop).get(null)).blockID;
        fertilize = Class.forName("magicCrop.crop" + crop).getMethod("func_72272_c_", World.class, int.class, int.class, int.class);
        MFRRegistry.registerPlantable(new PlantableCropPlant(seedId, blockId));
        MFRRegistry.registerHarvestable(new HarvestableCropPlant(blockId, 7));
        MFRRegistry.registerFertilizable(new FertilizableCropReflection(blockId, fertilize, 7));
      }
     
      for(String crop : namedAsMagicalCropButExtendsBlockCrops)
      {
        seedId = ((Item)mod.getField("mSeeds" + crop).get(null)).itemID;
        blockId = ((Block)mod.getField("mCrop" + crop).get(null)).blockID;
        fertilize = Class.forName("magicCrop.mCrop" + crop).getMethod("func_72272_c_", World.class, int.class, int.class, int.class);
        MFRRegistry.registerPlantable(new PlantableCropPlant(seedId, blockId));
        MFRRegistry.registerHarvestable(new HarvestableCropPlant(blockId, 7));
        MFRRegistry.registerFertilizable(new FertilizableCropReflection(blockId, fertilize, 7));
      }
     
      for(String magicalCrop : magicalCrops)
      {
        seedId = ((Item)mod.getField("mSeeds" + magicalCrop).get(null)).itemID;
View Full Code Here

TOP

Related Classes of powercrystals.minefactoryreloaded.modhelpers.FertilizableCropReflection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.