Package forestry.farming.logic

Examples of forestry.farming.logic.FarmableGenericCrop


    Farmables.farmables.put("farmShroom", new ArrayList<IFarmable>());
    Farmables.farmables.get("farmShroom").add(new FarmableVanillaShroom(Blocks.brown_mushroom, 0));
    Farmables.farmables.get("farmShroom").add(new FarmableVanillaShroom(Blocks.red_mushroom, 0));

    Farmables.farmables.put("farmWheat", new ArrayList<IFarmable>());
    Farmables.farmables.get("farmWheat").add(new FarmableGenericCrop(new ItemStack(Items.wheat_seeds), Blocks.wheat, 7));

    Farmables.farmables.put("farmGourd", new ArrayList<IFarmable>());
    Farmables.farmables.get("farmGourd").add(
        new FarmableGourd(new ItemStack(Items.pumpkin_seeds), new ItemStack(Blocks.pumpkin_stem), new ItemStack(Blocks.pumpkin)));
    Farmables.farmables.get("farmGourd").add(new FarmableGourd(new ItemStack(Items.melon_seeds), new ItemStack(Blocks.melon_stem), new ItemStack(Blocks.melon_block)));

    Farmables.farmables.put("farmInfernal", new ArrayList<IFarmable>());
    Farmables.farmables.get("farmInfernal").add(new FarmableGenericCrop(new ItemStack(Items.nether_wart), Blocks.nether_wart, 3));

    Farmables.farmables.put("farmPoales", new ArrayList<IFarmable>());
    Farmables.farmables.get("farmPoales").add(new FarmableStacked(Blocks.reeds, 3));

    Farmables.farmables.put("farmSucculentes", new ArrayList<IFarmable>());
    Farmables.farmables.get("farmSucculentes").add(new FarmableStacked(Blocks.cactus, 3));

    Farmables.farmables.put("farmVegetables", new ArrayList<IFarmable>());
    Farmables.farmables.get("farmVegetables").add(new FarmableGenericCrop(new ItemStack(Items.potato), Blocks.potatoes, 7));
    Farmables.farmables.get("farmVegetables").add(new FarmableGenericCrop(new ItemStack(Items.carrot), Blocks.carrots, 7));

    ForestryBlock.farm.registerBlock(new BlockFarm(), ItemFarmBlock.class, "ffarm");
    /*Item.itemsList[ForestryBlock.farm] = null;
     Item.itemsList[ForestryBlock.farm] = (new ItemFarmBlock(ForestryBlock.farm - 256, "ffarm"));*/
    ForestryBlock.farm.block().setHarvestLevel("pickaxe", 0);
View Full Code Here


        Block crop = GameData.getBlockRegistry().getRaw(items[2]);
        if (crop == null || crop == Blocks.air)
          throw new RuntimeException("can't find block for " + items[2]);

        Farmables.farmables.get(tokens[0]).add(
            new FarmableGenericCrop(new ItemStack(seed, 1, Integer.parseInt(items[1])),
                crop,
                Integer.parseInt(items[3])));
      } catch (Exception ex) {
        Proxies.log.info("%s for farm '%s': ", errormsg, tokens[0], ex.getMessage());
      }
View Full Code Here

TOP

Related Classes of forestry.farming.logic.FarmableGenericCrop

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.