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 before a Honeypot is created. This event is called before the block is created, not after. This event is cancellable. If cancelled, the creation does not happen.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Boilerplate function for Bukkit
    org.bukkit.event.HandlerList
    Boilerplate function for Bukkit
    org.bukkit.inventory.Inventory
    Get the block that was involved in the event
    org.bukkit.entity.Player
    Get the player that broke the block

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 Honeypot
      inv - The inventory of the 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
    • getInventory

      public org.bukkit.inventory.Inventory getInventory()
      Get the block that was involved in the event
      Returns:
      Block