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

    Constructors
    Constructor
    Description
    HoneypotPlayerInteractEvent(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 Type
    Method
    Description
    org.bukkit.block.Block
    Get the block that was involved in the event
    static org.bukkit.event.HandlerList
    Boilerplate function for Bukkit
    org.bukkit.event.HandlerList
    Boilerplate function for Bukkit
    org.bukkit.entity.Player
    Get the player that broke the block

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 Honeypot
      block - The Honeypot block
  • Method Details

    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Boilerplate function for Bukkit
      Specified by:
      getHandlers in class org.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