Class HoneypotNonPlayerBreakEvent

java.lang.Object
org.bukkit.event.Event
org.reprogle.honeypot.api.events.HoneypotNonPlayerBreakEvent

public class HoneypotNonPlayerBreakEvent extends org.bukkit.event.Event
Event that is triggered after a Honeypot is edited by a non-player object. This event is called after the block edit, not before. This event is not cancellable, you cannot cancel the editing of a Honeypot moved by a non-object. Currently, this class can only return the Honeypot Block and a generic Object representing the thing that attempted to edit the block.
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    HoneypotNonPlayerBreakEvent(Object object, org.bukkit.block.Block block)
    Constructor for event
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.block.Block
    Get the block that was broken
    static org.bukkit.event.HandlerList
    Boilerplate function for Bukkit
    org.bukkit.event.HandlerList
    Boilerplate function for Bukkit
    Get the object that triggered the event

    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

    • HoneypotNonPlayerBreakEvent

      public HoneypotNonPlayerBreakEvent(Object object, org.bukkit.block.Block block)
      Constructor for event
      Parameters:
      object - The object doing the breaking
      block - The block being broken
  • 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
    • getObject

      public Object getObject()
      Get the object that triggered the event
      Returns:
      Object
    • getBlock

      public org.bukkit.block.Block getBlock()
      Get the block that was broken
      Returns:
      Block