org.bukkit.event.inventory
Class InventoryEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.inventory.InventoryEvent
Direct Known Subclasses:
EnchantItemEvent, InventoryCloseEvent, InventoryInteractEvent, InventoryOpenEvent, PrepareItemCraftEvent, PrepareItemEnchantEvent

public class InventoryEvent
extends Event

Represents a player related inventory event


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
 
Field Summary
protected  InventoryView transaction
           
 
Constructor Summary
InventoryEvent(InventoryView transaction)
           
 
Method Summary
static HandlerList getHandlerList()
           
 HandlerList getHandlers()
           
 Inventory getInventory()
          Gets the primary Inventory involved in this transaction
 InventoryView getView()
          Gets the view object itself
 List<HumanEntity> getViewers()
          Gets the list of players viewing the primary (upper) inventory involved in this event
 
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
 

Field Detail

transaction

protected InventoryView transaction
Constructor Detail

InventoryEvent

public InventoryEvent(InventoryView transaction)
Method Detail

getInventory

public Inventory getInventory()
Gets the primary Inventory involved in this transaction

Returns:
The upper inventory.

getViewers

public List<HumanEntity> getViewers()
Gets the list of players viewing the primary (upper) inventory involved in this event

Returns:
A list of people viewing.

getView

public InventoryView getView()
Gets the view object itself

Returns:
InventoryView

getHandlers

public HandlerList getHandlers()
Specified by:
getHandlers in class Event

getHandlerList

public static HandlerList getHandlerList()


Copyright © 2013. All Rights Reserved.