Package powercrystals.minefactoryreloaded.farmables.plantables

Examples of powercrystals.minefactoryreloaded.farmables.plantables.PlantableCropPlant


      MFRRegistry.registerHarvestable(new HarvestableStandard(blockIdLogs, HarvestType.Tree));
      MFRRegistry.registerHarvestable(new HarvestableRedPowerPlant(blockIdPlants));
      MFRRegistry.registerHarvestable(new HarvestableRedPowerFlax(blockIdCrops));
     
      MFRRegistry.registerPlantable(new PlantableStandard(blockIdPlants, blockIdPlants));
      MFRRegistry.registerPlantable(new PlantableCropPlant(itemCropSeedId, blockIdCrops));
     
      MFRRegistry.registerFertilizable(new FertilizableRedPowerFlax(blockIdCrops));
      MFRRegistry.registerFertilizable(new FertilizableRedPowerRubberTree(blockIdPlants, fertilizeMethod));
    }
    catch (Exception x)
View Full Code Here


    MFRRegistry.registerPlantable(new PlantableStandard(Block.sapling.blockID, Block.sapling.blockID));
    MFRRegistry.registerPlantable(new PlantableStandard(Item.pumpkinSeeds.itemID, Block.pumpkinStem.blockID));
    MFRRegistry.registerPlantable(new PlantableStandard(Item.melonSeeds.itemID, Block.melonStem.blockID));
    MFRRegistry.registerPlantable(new PlantableStandard(Block.mushroomBrown.blockID, Block.mushroomBrown.blockID));
    MFRRegistry.registerPlantable(new PlantableStandard(Block.mushroomRed.blockID, Block.mushroomRed.blockID));
    MFRRegistry.registerPlantable(new PlantableCropPlant(Item.seeds.itemID, Block.crops.blockID));
    MFRRegistry.registerPlantable(new PlantableCropPlant(Item.carrot.itemID, Block.carrot.blockID));
    MFRRegistry.registerPlantable(new PlantableCropPlant(Item.potato.itemID, Block.potato.blockID));
    MFRRegistry.registerPlantable(new PlantableNetherWart());
    MFRRegistry.registerPlantable(new PlantableCocoa());
    MFRRegistry.registerPlantable(new PlantableStandard(MineFactoryReloadedCore.rubberSaplingBlock.blockID, MineFactoryReloadedCore.rubberSaplingBlock.blockID));
   
    MFRRegistry.registerHarvestable(new HarvestableWood());
View Full Code Here

        {
          int seedId = ((Item)mod.getField(flower.toLowerCase() + "flowerseedItem").get(null)).itemID;
          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)
View Full Code Here

      blockIdCrop = ((Block)mod.getField(String.format("pam%sCrop", cropNameLC)).get(null)).blockID;
      seedId = ((Item)mod.getField(String.format("%sseedItem", cropNameLC)).get(null)).itemID;
     
      if (plantableBlockId == Block.tilledField.blockID)
      {
        MFRRegistry.registerPlantable(new PlantableCropPlant(seedId, blockIdCrop));
      }
      else
      {
        MFRRegistry.registerPlantable(new PlantablePamSpecial(blockIdCrop, seedId, plantableBlockId));
      }
View Full Code Here

     
      FMLLog.info("Registering Gysahls for Planter/Harvester/Fertilizer");
      int blockId = ((Block)(mod.getField("gysahlStemBlock").get(null))).blockID;
      int seedId = ((Item)(mod.getField("gysahlSeedsItem").get(null))).itemID;
     
      MFRRegistry.registerPlantable(new PlantableCropPlant(seedId, blockId));
      MFRRegistry.registerHarvestable(new HarvestableChococraft(blockId));
      MFRRegistry.registerFertilizable(new FertilizableChococraft(blockId));
     
      // Chocobo List
      FMLLog.info("Registering Chocobos for Grinder...");
View Full Code Here

      int HenequenCropSeedId = ((Item)itemClass.getField("henequenSeeds").get(null)).itemID;
     
      MFRRegistry.registerHarvestable(new HarvestableXycraftCorn(CornCropsID));
      MFRRegistry.registerHarvestable(new HarvestableHenequen(HenequenCropsID));
     
      MFRRegistry.registerPlantable(new PlantableCropPlant(CornCropSeedId, CornCropsID));
      MFRRegistry.registerPlantable(new PlantableCropPlant(HenequenCropSeedId, HenequenCropsID));
     
      MFRRegistry.registerFertilizable(new FertilizableCorn(CornCropsID));
      MFRRegistry.registerFertilizable(new FertilizableHenequen(HenequenCropsID));
    }
    catch (Exception x)
View Full Code Here

      for(String crop : crops)
      {
        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);
View Full Code Here

TOP

Related Classes of powercrystals.minefactoryreloaded.farmables.plantables.PlantableCropPlant

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.