Package org.reprogle.honeypot.api.events
Class HoneypotPlayerInteractEvent
java.lang.Object
org.bukkit.event.Event
org.reprogle.honeypot.api.events.HoneypotPlayerInteractEvent
public class HoneypotPlayerInteractEvent
extends org.bukkit.event.Event
Event that is triggered each time a Honeypot inventory is interacted with.
This event is called after the interaction is triggered, not before.
This event is not cancellable. If you need to cancel it, use
HoneypotPrePlayerInteractEvent.-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionHoneypotPlayerInteractEvent(org.bukkit.entity.Player player, org.bukkit.block.Block block) Called after action is taken on a player who interacted with the Honeypot. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.block.BlockgetBlock()Get the block that was involved in the eventstatic org.bukkit.event.HandlerListBoilerplate function for Bukkitorg.bukkit.event.HandlerListBoilerplate function for Bukkitorg.bukkit.entity.PlayerGet the player that broke the blockMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
HoneypotPlayerInteractEvent
public HoneypotPlayerInteractEvent(org.bukkit.entity.Player player, org.bukkit.block.Block block) Called after action is taken on a player who interacted with the Honeypot. Non-cancellable- Parameters:
player- The Player who broke with the Honeypotblock- The Honeypot block
-
-
Method Details
-
getHandlers
public 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
-
getBlock
public org.bukkit.block.Block getBlock()Get the block that was involved in the event- Returns:
Block
-