Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 25 lines 594 B view raw
1package org.bukkit.event.player; 2 3import org.bukkit.entity.Player; 4import org.bukkit.inventory.Inventory; 5 6/** 7 * Represents a player related inventory event 8 */ 9public class PlayerInventoryEvent extends PlayerEvent { 10 protected Inventory inventory; 11 12 public PlayerInventoryEvent(final Player player, final Inventory inventory) { 13 super(Type.PLAYER_INVENTORY, player); 14 this.inventory = inventory; 15 } 16 17 /** 18 * Gets the Inventory involved in this event 19 * 20 * @return Inventory 21 */ 22 public Inventory getInventory() { 23 return inventory; 24 } 25}