Examples of enchantedWith()


Examples of simpleserver.nbt.Inventory.Slot.enchantedWith()

      }
      boolean changed = false;
      for (int i = 2; i < parts.length; i++) {
        try {
          Integer id = Integer.valueOf(parts[i]);
          if (!item.enchantedWith(id)) {
            player.addTMessage(Color.RED, "The item was not enchanted with %s", (ENCHANTMENTS.containsKey(id) ? ENCHANTMENTS.get(id) : id));
          } else {
            item.removeEnchantment(id);
            changed = true;
          }
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.