Examples of containsEnchantment()


Examples of org.getspout.spoutapi.inventory.SpoutItemStack.containsEnchantment()

  }

  @EventHandler(priority = EventPriority.LOWEST)
  public void onPlayerPickupItem(PlayerPickupItemEvent e) {
    SpoutItemStack sis = new SpoutItemStack(e.getItem().getItemStack());
    if (!sis.containsEnchantment(SpoutEnchantment.UNSTACKABLE) && sis.isCustomItem()) {
      CustomItem ci = (CustomItem)sis.getMaterial();
      if (!ci.isStackable()) {
        sis.addEnchantment(SpoutEnchantment.UNSTACKABLE, 1000);
      }
    }
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.