Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
PlayerInventoryEvent.java
1 package org.bukkit.event.player;
2 
3 import org.bukkit.entity.Player;
8 
9 /**
10  * Represents a player related inventory event; note that this event never
11  * actually did anything
12  *
13  * @deprecated Use {@link InventoryClickEvent} or {@link InventoryOpenEvent}
14  * instead, or one of the other inventory events in {@link
15  * org.bukkit.event.inventory}.
16  */
17 @Deprecated
18 public class PlayerInventoryEvent extends PlayerEvent {
19  private static final HandlerList handlers = new HandlerList();
20  protected Inventory inventory;
21 
22  public PlayerInventoryEvent(final Player player, final Inventory inventory) {
23  super(player);
24  this.inventory = inventory;
25  }
26 
27  /**
28  * Gets the Inventory involved in this event
29  *
30  * @return Inventory
31  */
33  return inventory;
34  }
35 
36  @Override
37  public HandlerList getHandlers() {
38  return handlers;
39  }
40 
41  public static HandlerList getHandlerList() {
42  return handlers;
43  }
44 }