Package org.bukkit.inventory

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


      for (i = 0; i < size; i++) {
        ItemStack newItem = inventoryClone.getItem(i);
        if (LogicUtil.nullOrEmpty(newItem)) {
          items[i] = null;
        } else if (items[i] == null) {
          items[i] = newItem.clone();
        } else {
          // Transfer info and amount
          ItemUtil.transferInfo(newItem, items[i]);
          items[i].setAmount(newItem.getAmount());
        }
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.