Examples of addIngredient()


Examples of com.l2jfrozen.gameserver.model.multisell.MultiSellEntry.addIngredient()

                                        hasIngredient = true;
                                }
                        }

                        // finally, add this ingredient to the entry
                        newEntry.addIngredient(newIngredient);
                }
                // Next add the adena amount, if any
                if (totalAdenaCount > 0)
                {
                        newEntry.addIngredient(new MultiSellIngredient(57, totalAdenaCount, false, false));
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.multisell.MultiSellEntry.addIngredient()

                        newEntry.addIngredient(newIngredient);
                }
                // Next add the adena amount, if any
                if (totalAdenaCount > 0)
                {
                        newEntry.addIngredient(new MultiSellIngredient(57, totalAdenaCount, false, false));
                }

                // Now modify the enchantment level of products, if necessary
                for (MultiSellIngredient ing : templateEntry.getProducts())
                {
View Full Code Here

Examples of com.manning.siia.kitchen.domain.Recipe.addIngredient()

  @Test
  public void shouldMarshallDomain() {
    Recipe r = new Recipe("Nasi");
    Ingredient i = new Ingredient("Beef", new Amount(500, Unit.GRAMS), Type.Meat);
    r.addIngredient(i);
    r.addIngredient(new Ingredient("Red Sweet Pepper", new Amount(1, Unit.PIECES), Type.Vegetable));

    System.out.println(xstream.toXML(r));
  }
}
View Full Code Here

Examples of l2p.gameserver.model.base.MultiSellEntry.addIngredient()

        list.addEntry(e1);
      }
      if(item[ItemTable.WEX_SA2] > 0 && item[ItemTable.WEX_SA_CRY2] > 0)
      {
        MultiSellEntry e1 = new MultiSellEntry(entId++);
        e1.addIngredient(new MultiSellIngredient(i, 1));
        e1.addIngredient(new MultiSellIngredient(item[ItemTable.WEX_SA_CRY2], 1));
        e1.addIngredient(new MultiSellIngredient(price[0], price[1]));
        if(price[2] > 0)
        {
          e1.addIngredient(new MultiSellIngredient(57, price[2]));
View Full Code Here

Examples of l2p.gameserver.model.base.MultiSellEntry.addIngredient()

      }
      if(item[ItemTable.WEX_SA2] > 0 && item[ItemTable.WEX_SA_CRY2] > 0)
      {
        MultiSellEntry e1 = new MultiSellEntry(entId++);
        e1.addIngredient(new MultiSellIngredient(i, 1));
        e1.addIngredient(new MultiSellIngredient(item[ItemTable.WEX_SA_CRY2], 1));
        e1.addIngredient(new MultiSellIngredient(price[0], price[1]));
        if(price[2] > 0)
        {
          e1.addIngredient(new MultiSellIngredient(57, price[2]));
        }
View Full Code Here

Examples of l2p.gameserver.model.base.MultiSellEntry.addIngredient()

      if(item[ItemTable.WEX_SA2] > 0 && item[ItemTable.WEX_SA_CRY2] > 0)
      {
        MultiSellEntry e1 = new MultiSellEntry(entId++);
        e1.addIngredient(new MultiSellIngredient(i, 1));
        e1.addIngredient(new MultiSellIngredient(item[ItemTable.WEX_SA_CRY2], 1));
        e1.addIngredient(new MultiSellIngredient(price[0], price[1]));
        if(price[2] > 0)
        {
          e1.addIngredient(new MultiSellIngredient(57, price[2]));
        }
        e1.addProduct(new MultiSellIngredient(item[ItemTable.WEX_SA2], 1));
View Full Code Here

Examples of l2p.gameserver.model.base.MultiSellEntry.addIngredient()

        e1.addIngredient(new MultiSellIngredient(i, 1));
        e1.addIngredient(new MultiSellIngredient(item[ItemTable.WEX_SA_CRY2], 1));
        e1.addIngredient(new MultiSellIngredient(price[0], price[1]));
        if(price[2] > 0)
        {
          e1.addIngredient(new MultiSellIngredient(57, price[2]));
        }
        e1.addProduct(new MultiSellIngredient(item[ItemTable.WEX_SA2], 1));
        list.addEntry(e1);
      }
      if(item[ItemTable.WEX_SA3] > 0 && item[ItemTable.WEX_SA_CRY3] > 0)
View Full Code Here

Examples of l2p.gameserver.model.base.MultiSellEntry.addIngredient()

        list.addEntry(e1);
      }
      if(item[ItemTable.WEX_SA3] > 0 && item[ItemTable.WEX_SA_CRY3] > 0)
      {
        MultiSellEntry e1 = new MultiSellEntry(entId++);
        e1.addIngredient(new MultiSellIngredient(i, 1));
        e1.addIngredient(new MultiSellIngredient(item[ItemTable.WEX_SA_CRY3], 1));
        e1.addIngredient(new MultiSellIngredient(price[0], price[1]));
        if(price[2] > 0)
        {
          e1.addIngredient(new MultiSellIngredient(57, price[2]));
View Full Code Here

Examples of l2p.gameserver.model.base.MultiSellEntry.addIngredient()

      }
      if(item[ItemTable.WEX_SA3] > 0 && item[ItemTable.WEX_SA_CRY3] > 0)
      {
        MultiSellEntry e1 = new MultiSellEntry(entId++);
        e1.addIngredient(new MultiSellIngredient(i, 1));
        e1.addIngredient(new MultiSellIngredient(item[ItemTable.WEX_SA_CRY3], 1));
        e1.addIngredient(new MultiSellIngredient(price[0], price[1]));
        if(price[2] > 0)
        {
          e1.addIngredient(new MultiSellIngredient(57, price[2]));
        }
View Full Code Here

Examples of l2p.gameserver.model.base.MultiSellEntry.addIngredient()

      if(item[ItemTable.WEX_SA3] > 0 && item[ItemTable.WEX_SA_CRY3] > 0)
      {
        MultiSellEntry e1 = new MultiSellEntry(entId++);
        e1.addIngredient(new MultiSellIngredient(i, 1));
        e1.addIngredient(new MultiSellIngredient(item[ItemTable.WEX_SA_CRY3], 1));
        e1.addIngredient(new MultiSellIngredient(price[0], price[1]));
        if(price[2] > 0)
        {
          e1.addIngredient(new MultiSellIngredient(57, price[2]));
        }
        e1.addProduct(new MultiSellIngredient(item[ItemTable.WEX_SA3], 1));
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.