Bukkit
1.4.7-R1.0
Main Page
Related Pages
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Enumerator
Pages
InventoryEvent.java
Go to the documentation of this file.
1
2
package
org.bukkit.event.inventory;
3
4
import
java.util.List;
5
6
import
org.bukkit.event.HandlerList;
7
import
org.bukkit.entity.HumanEntity;
8
import
org.bukkit.event.Event;
9
import
org.bukkit.inventory.Inventory;
10
import
org.bukkit.inventory.InventoryView;
11
15
public
class
InventoryEvent
extends
Event
{
16
private
static
final
HandlerList
handlers =
new
HandlerList
();
17
protected
InventoryView
transaction
;
18
19
public
InventoryEvent
(
InventoryView
transaction
) {
20
this.transaction =
transaction
;
21
}
22
28
public
Inventory
getInventory
() {
29
return
transaction
.
getTopInventory
();
30
}
31
37
public
List<HumanEntity>
getViewers
() {
38
return
transaction
.
getTopInventory
().
getViewers
();
39
}
40
46
public
InventoryView
getView
() {
47
return
transaction
;
48
}
49
50
@Override
51
public
HandlerList
getHandlers
() {
52
return
handlers;
53
}
54
55
public
static
HandlerList
getHandlerList
() {
56
return
handlers;
57
}
58
}
org
bukkit
event
inventory
InventoryEvent.java
Generated on Sat May 25 2013 19:16:41 for Bukkit by
1.8.2