001    
002    package org.bukkit.event.inventory;
003    
004    import org.bukkit.entity.HumanEntity;
005    import org.bukkit.event.HandlerList;
006    import org.bukkit.inventory.InventoryView;
007    
008    /**
009     * Represents a player related inventory event
010     */
011    public class InventoryCloseEvent extends InventoryEvent {
012        private static final HandlerList handlers = new HandlerList();
013    
014        public InventoryCloseEvent(InventoryView transaction) {
015            super(transaction);
016        }
017    
018        /**
019         * Returns the player involved in this event
020         *
021         * @return Player who is involved in this event
022         */
023        public final HumanEntity getPlayer() {
024            return transaction.getPlayer();
025        }
026    
027        @Override
028        public HandlerList getHandlers() {
029            return handlers;
030        }
031    
032        public static HandlerList getHandlerList() {
033            return handlers;
034        }
035    }