org.bukkit.event.inventory.InventoryCloseEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chest-server Show documentation
Show all versions of chest-server Show documentation
A spigot fork to kotlin structure and news.
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