All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.event.inventory.InventoryCloseEvent Maven / Gradle / Ivy

The newest version!
package org.bukkit.event.inventory;

import org.bukkit.entity.HumanEntity;
import org.bukkit.event.HandlerList;
import org.bukkit.inventory.InventoryView;

/**
 * Represents a player related inventory event
 */
public class InventoryCloseEvent extends InventoryEvent {
  private static final HandlerList handlers = new HandlerList();

  public InventoryCloseEvent(InventoryView transaction) {
    super(transaction);
  }

  public static HandlerList getHandlerList() {
    return handlers;
  }

  /**
   * Returns the player involved in this event
   *
   * @return Player who is involved in this event
   */
  public final HumanEntity getPlayer() {
    return transaction.getPlayer();
  }

  @Override
  public HandlerList getHandlers() {
    return handlers;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy