Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.inventory.InventoryEvent Class Reference
Inheritance diagram for org.bukkit.event.inventory.InventoryEvent:
org.bukkit.event.Event org.bukkit.event.enchantment.EnchantItemEvent org.bukkit.event.enchantment.PrepareItemEnchantEvent org.bukkit.event.inventory.InventoryCloseEvent org.bukkit.event.inventory.InventoryInteractEvent org.bukkit.event.inventory.InventoryOpenEvent org.bukkit.event.inventory.PrepareItemCraftEvent org.bukkit.event.inventory.InventoryClickEvent org.bukkit.event.inventory.InventoryDragEvent org.bukkit.event.inventory.CraftItemEvent org.bukkit.event.inventory.InventoryCreativeEvent

Public Member Functions

 InventoryEvent (InventoryView transaction)
 
Inventory getInventory ()
 
List< HumanEntitygetViewers ()
 
InventoryView getView ()
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Protected Attributes

InventoryView transaction
 

Detailed Description

Represents a player related inventory event

Definition at line 15 of file InventoryEvent.java.

Member Function Documentation

Inventory org.bukkit.event.inventory.InventoryEvent.getInventory ( )

Gets the primary Inventory involved in this transaction

Returns
The upper inventory.

Definition at line 28 of file InventoryEvent.java.

References org.bukkit.inventory.InventoryView.getTopInventory().

28  {
29  return transaction.getTopInventory();
30  }
abstract Inventory getTopInventory()
List<HumanEntity> org.bukkit.event.inventory.InventoryEvent.getViewers ( )

Gets the list of players viewing the primary (upper) inventory involved in this event

Returns
A list of people viewing.

Definition at line 38 of file InventoryEvent.java.

References org.bukkit.inventory.InventoryView.getTopInventory(), and org.bukkit.inventory.Inventory.getViewers().

38  {
39  return transaction.getTopInventory().getViewers();
40  }
List< HumanEntity > getViewers()
abstract Inventory getTopInventory()

The documentation for this class was generated from the following file: