Package powercrystals.minefactoryreloaded.farmables.harvestables

Examples of powercrystals.minefactoryreloaded.farmables.harvestables.HarvestableCropPlant


    MFRRegistry.registerHarvestable(new HarvestableStandard(Block.mushroomCapRed.blockID, HarvestType.Tree));
    MFRRegistry.registerHarvestable(new HarvestableMushroom(Block.mushroomBrown.blockID));
    MFRRegistry.registerHarvestable(new HarvestableMushroom(Block.mushroomRed.blockID));
    MFRRegistry.registerHarvestable(new HarvestableStemPlant(Block.pumpkin.blockID, HarvestType.Normal));
    MFRRegistry.registerHarvestable(new HarvestableStemPlant(Block.melon.blockID, HarvestType.Normal));
    MFRRegistry.registerHarvestable(new HarvestableCropPlant(Block.crops.blockID, 7));
    MFRRegistry.registerHarvestable(new HarvestableCropPlant(Block.carrot.blockID, 7));
    MFRRegistry.registerHarvestable(new HarvestableCropPlant(Block.potato.blockID, 7));
    MFRRegistry.registerHarvestable(new HarvestableVine());
    MFRRegistry.registerHarvestable(new HarvestableNetherWart());
    MFRRegistry.registerHarvestable(new HarvestableCocoa());
    MFRRegistry.registerHarvestable(new HarvestableStandard(MineFactoryReloadedCore.rubberWoodBlock.blockID, HarvestType.Tree));
    MFRRegistry.registerHarvestable(new HarvestableTreeLeaves(MineFactoryReloadedCore.rubberLeavesBlock.blockID));
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;
        blockId = ((Block)mod.getField("mCrop" + magicalCrop).get(null)).blockID;
        fertilize = Class.forName("magicCrop.mCrop" + magicalCrop).getMethod("fertilize", World.class, int.class, int.class, int.class);
        MFRRegistry.registerPlantable(new PlantableCropPlant(seedId, blockId));
        MFRRegistry.registerHarvestable(new HarvestableCropPlant(blockId, 7));
        MFRRegistry.registerFertilizable(new FertilizableMagicalCropReflection(blockId, fertilize, 7));
      }
     
      for(String soulCrop : soulCrops)
      {
        seedId = ((Item)mod.getField("soulSeed" + soulCrop).get(null)).itemID;
        blockId = ((Block)mod.getField("soulCrop" + soulCrop).get(null)).blockID;
        fertilize = Class.forName("magicCrop.soulCrop" + soulCrop).getMethod("fertilize", World.class, int.class, int.class, int.class);
        MFRRegistry.registerPlantable(new PlantableCropPlant(seedId, blockId));
        MFRRegistry.registerHarvestable(new HarvestableCropPlant(blockId, 7));
        MFRRegistry.registerFertilizable(new FertilizableMagicalCropReflection(blockId, fertilize, 7));
      }
     
      Item magicalFertilizer = (Item)mod.getField("magicFertilizer").get(null);
      if(magicalFertilizer != null)
View Full Code Here

TOP

Related Classes of powercrystals.minefactoryreloaded.farmables.harvestables.HarvestableCropPlant

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.