Package org.bukkit.inventory

Examples of org.bukkit.inventory.ItemStack.serialize()


  public Map<String, Object> serialize() {
    Map<String, Object> config = new HashMap<String, Object>();
    config.put("slots", this.toIntList(contents.keySet()));
    for (Integer slot : contents.keySet()) {
      ItemStack stack = contents.get(slot);
      config.put(slot.toString(), stack.serialize());
    }
    config.put("permission", permission);
    return config;
  }
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.