Examples of onItemPut()


Examples of org.getspout.spoutapi.gui.Slot.onItemPut()

        }
        if (putAmount <= 0) {
          return;
        }
        toPut.setAmount(putAmount);
        SlotEvent s = new SlotPutEvent(p, slot, stackInSlot, !slot.onItemPut(toPut));
        Bukkit.getPluginManager().callEvent(s);
        if (!s.isCancelled()) {
          stackOnCursor.setAmount(stackOnCursor.getAmount() - putAmount);
          if (stackOnCursor.getAmount() == 0) {
            stackOnCursor = new ItemStack(0);
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.