Package org.bukkit.craftbukkit.inventory

Examples of org.bukkit.craftbukkit.inventory.CraftInventoryCustom


   *
   * @param tags Tag list
   * @return Inventory
   */
  public static Inventory createInventory(CommonTagList tags) {
    Inventory inv = new CraftInventoryCustom(null, tags.size());
   
    for(int i = 0; i < tags.size(); i++) {
      CommonTagCompound tag = (CommonTagCompound) tags.get(i);
      if(!tag.isEmpty()) {
        inv.setItem(i, CraftItemStack.asCraftMirror(ItemStack.createStack(
            (NBTTagCompound) tag.getHandle())));
      }
    }
   
    return inv;
View Full Code Here

TOP

Related Classes of org.bukkit.craftbukkit.inventory.CraftInventoryCustom

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.