Package l2p.gameserver.templates

Examples of l2p.gameserver.templates.Item


   *
   * @return
   */
  public Item newItem()
  {
    return new Item();
  }
View Full Code Here


        // Add item in correct HashMap
        while(rset.next())
        {
          if(selectQuery.endsWith("etcitem"))
          {
            Item newItem = readItem(rset);
            itemData.put(newItem.id, newItem);
          }
          else if(selectQuery.endsWith("armor"))
          {
            Item newItem = readArmor(rset);
            armorData.put(newItem.id, newItem);
          }
          else if(selectQuery.endsWith("weapon"))
          {
            Item newItem = readWeapon(rset);
            weaponData.put(newItem.id, newItem);
          }
        }
        DatabaseUtils.closeDatabaseSR(statement, rset);
      }
View Full Code Here

   * @return Item : object created from the database record
   * @throws SQLException
   */
  private Item readWeapon(ResultSet rset) throws SQLException
  {
    Item item = new Item();
    item.set = new StatsSet();
    item.id = rset.getInt("item_id");
    item.type = _weaponTypes.get(rset.getString("weaponType"));
    if(item.type == null)
    {
View Full Code Here

   * @return Item : object created from the database record
   * @throws SQLException
   */
  private Item readArmor(ResultSet rset) throws SQLException
  {
    Item item = new Item();
    try
    {
      item.set = new StatsSet();
      item.type = _armorTypes.get(rset.getString("armor_type"));
      item.id = rset.getInt("item_id");
View Full Code Here

   * @return Item : object created from the database record
   * @throws SQLException
   */
  private Item readItem(ResultSet rset) throws SQLException
  {
    Item item = new Item();
    item.set = new StatsSet();
    item.id = rset.getInt("item_id");
    item.set.set("item_id", item.id);
    item.set.set("crystallizable", Boolean.valueOf(rset.getString("crystallizable")));
    item.set.set("type1", L2Item.TYPE1_ITEM_QUESTITEM_ADENA);
View Full Code Here

TOP

Related Classes of l2p.gameserver.templates.Item

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.