Package org.getspout.spoutapi.event.slot

Examples of org.getspout.spoutapi.event.slot.SlotExchangeEvent


          } else {
            slot.setDirty(true); // We need to tell the client that the operation was denied.
          }
        }
      } else if (stackOnCursor.getTypeId() != stackInSlot.getTypeId() || stackOnCursor.getDurability() != stackInSlot.getDurability()) { // Exchange slot stack and cursor stack
        SlotEvent s = new SlotExchangeEvent(p, slot, stackInSlot, stackOnCursor.clone(), !slot.onItemExchange(stackInSlot, stackOnCursor.clone()));
        Bukkit.getPluginManager().callEvent(s);
        if (!s.isCancelled()) {
          slot.setItem(stackOnCursor.clone());
          stackOnCursor = stackInSlot;
        } else {
          slot.setDirty(true); // We need to tell the client that the operation was denied.
        }
View Full Code Here

TOP

Related Classes of org.getspout.spoutapi.event.slot.SlotExchangeEvent

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.