org.bukkit.event.inventory
Class InventoryCreativeEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.inventory.InventoryEvent
          extended by org.bukkit.event.inventory.InventoryInteractEvent
              extended by org.bukkit.event.inventory.InventoryClickEvent
                  extended by org.bukkit.event.inventory.InventoryCreativeEvent
All Implemented Interfaces:
Cancellable

public class InventoryCreativeEvent
extends InventoryClickEvent

This event is called when a player in creative mode puts down or picks up an item in their inventory / hotbar and when they drop items from their Inventory while in creative mode.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
 
Field Summary
 
Fields inherited from class org.bukkit.event.inventory.InventoryEvent
transaction
 
Constructor Summary
InventoryCreativeEvent(InventoryView what, InventoryType.SlotType type, int slot, ItemStack newItem)
           
 
Method Summary
 ItemStack getCursor()
          Gets the current ItemStack on the cursor.
 void setCursor(ItemStack item)
          Sets the item on the cursor.
 
Methods inherited from class org.bukkit.event.inventory.InventoryClickEvent
getAction, getClick, getCurrentItem, getHandlerList, getHandlers, getHotbarButton, getRawSlot, getSlot, getSlotType, isLeftClick, isRightClick, isShiftClick, setCurrentItem
 
Methods inherited from class org.bukkit.event.inventory.InventoryInteractEvent
getResult, getWhoClicked, isCancelled, setCancelled, setResult
 
Methods inherited from class org.bukkit.event.inventory.InventoryEvent
getInventory, getView, getViewers
 
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InventoryCreativeEvent

public InventoryCreativeEvent(InventoryView what,
                              InventoryType.SlotType type,
                              int slot,
                              ItemStack newItem)
Method Detail

getCursor

public ItemStack getCursor()
Description copied from class: InventoryClickEvent
Gets the current ItemStack on the cursor.

Overrides:
getCursor in class InventoryClickEvent
Returns:
the cursor ItemStack

setCursor

public void setCursor(ItemStack item)
Description copied from class: InventoryClickEvent
Sets the item on the cursor.

Overrides:
setCursor in class InventoryClickEvent
Parameters:
item - the new cursor item


Copyright © 2013. All Rights Reserved.