Package tyrelion.itemsystem

Examples of tyrelion.itemsystem.Item


    List<?> childs = itemsXml.getRootElement().getChildren();
    items = new Item[childs.size()];
   
    for (int i = 0; i < childs.size(); i++) {
      Element e = (Element) childs.get(i);
      Item item = null;
     
      int id = e.getAttribute("id").getIntValue();
      String name = e.getAttributeValue("name");
      String type = e.getAttributeValue("class");
      boolean stackable = e.getAttribute("stackable").getBooleanValue();
View Full Code Here


      items[i] = item;
    }
  }
 
  public Item getItem(int id) {
    Item item = null;
    for (Item e : items) {
      if (id == e.getUid()) {
        item = e;
        break;
      }
View Full Code Here

TOP

Related Classes of tyrelion.itemsystem.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.