Examples of addRecipe()


Examples of l2p.gameserver.model.L2Recipe.addRecipe()

          }
        }
        L2Recipe recipeList = new L2Recipe(id, level, recipeId, recipeName, successRate, mpCost, itemId, foundation, count, exp, sp, isDvarvenCraft);
        for(L2RecipeComponent recipePart : recipePartList)
        {
          recipeList.addRecipe(recipePart);
        }
        _listByRecipeId.put(id, recipeList);
        _listByRecipeItem.put(recipeId, recipeList);
      }
      _log.info("RecipeController: Loaded " + _listByRecipeId.size() + " Recipes.");
View Full Code Here

Examples of logisticspipes.recipes.RecipeManager.LocalCraftingManager.addRecipe()

  }

  @Override
  public void addCraftingRecipes(ICraftingParts parts) {
    LocalCraftingManager craftingManager = RecipeManager.craftingManager;
    craftingManager.addRecipe(new ItemStack(LogisticsPipes.UpgradeItem, 1, ItemUpgrade.CC_REMOTE_CONTROL), CraftingDependency.Upgrades, new Object[] {
      false,
      "rTr",
      "WCM",
      "rKr",
      Character.valueOf('C'), parts.getChipTear3(),
View Full Code Here

Examples of logisticspipes.recipes.RecipeManager.LocalCraftingManager.addRecipe()

      Character.valueOf('T'), Blocks.redstone_torch,
      Character.valueOf('W'), new ItemStack(ComputerCraft.Blocks.peripheral, 1, 1),
      Character.valueOf('M'), new ItemStack(ComputerCraft.Blocks.cable, 1, 1),
      Character.valueOf('K'), new ItemStack(ComputerCraft.Blocks.cable, 1, 0)
    });
    craftingManager.addRecipe(new ItemStack(LogisticsPipes.ModuleItem, 1, ItemModule.CC_BASED_ITEMSINK), CraftingDependency.Upgrades, new Object[] {
      false,
      "rTr",
      "WCM",
      "rKr",
      Character.valueOf('C'), new ItemStack(LogisticsPipes.ModuleItem, 1, ItemModule.ITEMSINK),
View Full Code Here

Examples of logisticspipes.recipes.RecipeManager.LocalCraftingManager.addRecipe()

      Character.valueOf('T'), Blocks.redstone_torch,
      Character.valueOf('W'), new ItemStack(ComputerCraft.Blocks.peripheral, 1, 1),
      Character.valueOf('M'), new ItemStack(ComputerCraft.Blocks.cable, 1, 1),
      Character.valueOf('K'), new ItemStack(ComputerCraft.Blocks.cable, 1, 0)
    });
    craftingManager.addRecipe(new ItemStack(LogisticsPipes.ModuleItem, 1, ItemModule.CC_BASED_QUICKSORT), CraftingDependency.Upgrades, new Object[] {
      false,
      "rTr",
      "WCM",
      "rKr",
      Character.valueOf('C'), new ItemStack(LogisticsPipes.ModuleItem, 1, ItemModule.QUICKSORT),
View Full Code Here

Examples of logisticspipes.recipes.RecipeManager.LocalCraftingManager.addRecipe()

  }

  @Override
  public void addCraftingRecipes(ICraftingParts parts) {
    LocalCraftingManager craftingManager = RecipeManager.craftingManager;
    craftingManager.addRecipe(new ItemStack(LogisticsPipes.UpgradeItem, 1, ItemUpgrade.POWER_RF_SUPPLIER), CraftingDependency.Power_Distribution, new Object[] {
      false,
      "PEP",
      "RBR",
      "PTP",
      Character.valueOf('B'), new ItemStack(LogisticsPipes.UpgradeItem, 1, ItemUpgrade.POWER_TRANSPORTATION),
View Full Code Here

Examples of logisticspipes.recipes.RecipeManager.LocalCraftingManager.addRecipe()

      Character.valueOf('P'), Items.paper,
      Character.valueOf('E'), new ItemStack(TEBlocks.blockDynamo, 1, 0),
      Character.valueOf('T'), TEItems.powerCoilSilver,
      Character.valueOf('R'), TEItems.powerCoilGold
    });
    craftingManager.addRecipe(new ItemStack(LogisticsPipes.LogisticsSolidBlock, 1, LogisticsSolidBlock.LOGISTICS_RF_POWERPROVIDER), CraftingDependency.Power_Distribution, new Object[] {
      false,
      "PEP",
      "RBR",
      "PTP",
      Character.valueOf('B'), Blocks.redstone_block,
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2RecipeList.addRecipe()

      L2RecipeList recipeList = new L2RecipeList(id, level, recipeId, recipeName, successRate,
                                                 mpCost, itemId, count, isDwarvenRecipe);
      for (L2RecipeInstance recipePart : recipePartList)
      {
        recipeList.addRecipe(recipePart);
      }
      _lists.put(new Integer(_lists.size()), recipeList);
    }
    catch (Exception e)
    {
View Full Code Here

Examples of org.apache.stanbol.rules.manager.changes.AddRecipe.addRecipe()

                    return rb.build();
                }

                // Add the recipe with the new rule
                AddRecipe newadd = new AddRecipe(ruleStore);
                ok = newadd.addRecipe(IRI.create(recipe), ruleseq, desc);

                if (ok) {
                    ruleStore.saveOntology();
                    ResponseBuilder rb = Response.ok();
                    MediaType mediaType = MediaTypeUtil.getAcceptableMediaType(headers, null);
View Full Code Here

Examples of org.apache.stanbol.rules.manager.changes.AddRecipe.addRecipe()

                    return rb.build();
                }

                // Add the recipe with the new rule
                AddRecipe newadd = new AddRecipe(ruleStore);
                ok = newadd.addRecipe(IRI.create(recipe), ruleseq, desc);
                if (ok) {
                    ruleStore.saveOntology();
                    ResponseBuilder rb = Response.ok();
                    MediaType mediaType = MediaTypeUtil.getAcceptableMediaType(headers, null);
                    if (mediaType != null) rb.header(HttpHeaders.CONTENT_TYPE, mediaType);
View Full Code Here

Examples of org.apache.stanbol.rules.manager.changes.AddRecipe.addRecipe()

        rules.add(IRI.create(ID+"MyRuleC"));
        rules.add(IRI.create(ID+"MyRuleB"));
        rules.add(IRI.create(ID+"MyRuleA"));
        String recipeDescription = "My comment to the recipe";
        AddRecipe instance = new AddRecipe(load.getStore());
        boolean result = instance.addRecipe(recipeName, rules, recipeDescription);
        OWLOntology newonto = instance.getStore().getOntology();
        if(result){
            OWLNamedIndividual ruleind = newonto.getOWLOntologyManager().getOWLDataFactory().getOWLNamedIndividual(IRI.create(ID + "MyRecipeNew"));
            int axiom = newonto.getAxioms(ruleind).size();
            assertEquals(8,axiom);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.