Package org.reprogle.honeypot.api.events
Class HoneypotInventoryClickEvent
java.lang.Object
org.bukkit.event.Event
org.reprogle.honeypot.api.events.HoneypotInventoryClickEvent
public class HoneypotInventoryClickEvent
extends org.bukkit.event.Event
Event that is triggered after a player triggers a container action
This event is called after a container action is triggered, not before. This means the state of the player may be unknown, for example if they were kicked as a result.
This event is not cancellable, you cannot cancel the action of a Honeypot container already interacted with by a player. If you need to cancel it, please use
HoneypotPreInventoryClickEvent-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionHoneypotInventoryClickEvent(org.bukkit.entity.Player player, org.bukkit.inventory.Inventory inv) Called after an action is ran on a player who modified a Honeypot inventory. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListBoilerplate function for Bukkit@NotNull org.bukkit.event.HandlerListBoilerplate function for Bukkitorg.bukkit.inventory.InventoryGet the block that was involved in the eventorg.bukkit.entity.PlayerGet the player that broke the blockMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
HoneypotInventoryClickEvent
public HoneypotInventoryClickEvent(org.bukkit.entity.Player player, org.bukkit.inventory.Inventory inv) Called after an action is ran on a player who modified a Honeypot inventory.- Parameters:
player- The Player breaking with the Honeypotinv- The inventory of the block
-
-
Method Details
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Boilerplate function for Bukkit- Specified by:
getHandlersin classorg.bukkit.event.Event- Returns:
- HandlerList
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Boilerplate function for Bukkit- Returns:
- HandlerList
-
getPlayer
public org.bukkit.entity.Player getPlayer()Get the player that broke the block- Returns:
Player
-
getInventory
public org.bukkit.inventory.Inventory getInventory()Get the block that was involved in the event- Returns:
Block
-