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

org.bukkit.event.player.PlayerInventoryEvent Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package org.bukkit.event.player;

import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryOpenEvent;
import org.bukkit.inventory.Inventory;

/**
 * Represents a player related inventory event; note that this event never
 * actually did anything
 *
 * @deprecated Use {@link InventoryClickEvent} or {@link InventoryOpenEvent}
 * instead, or one of the other inventory events in {@link
 * org.bukkit.event.inventory}.
 */
@Deprecated
public class PlayerInventoryEvent extends PlayerEvent {
  private static final HandlerList handlers = new HandlerList();
  protected Inventory inventory;

  public PlayerInventoryEvent(final Player player, final Inventory inventory) {
    super(player);
    this.inventory = inventory;
  }

  public static HandlerList getHandlerList() {
    return handlers;
  }

  /**
   * Gets the Inventory involved in this event
   *
   * @return Inventory
   */
  public Inventory getInventory() {
    return inventory;
  }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy