Class ProtectionChunkDeletedEvent

java.lang.Object
org.bukkit.event.Event
me.angeschossen.chestprotect.api.events.ProtectionChunkDeletedEvent

public class ProtectionChunkDeletedEvent extends org.bukkit.event.Event
Called whenever the last protection of a chunk was deleted.
  • Nested Class Summary

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

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

    Fields
    Modifier and Type
    Field
    Description
    static org.bukkit.event.HandlerList
    Required by Bukkit's event system.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProtectionChunkDeletedEvent(@NotNull ProtectionChunk protectionChunk)
    Construct the event.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Required by Bukkit's event system.
    org.bukkit.event.HandlerList
     
    Get the chunk.

    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
  • Field Details

    • handlerList

      public static org.bukkit.event.HandlerList handlerList
      Required by Bukkit's event system.
  • Constructor Details

    • ProtectionChunkDeletedEvent

      public ProtectionChunkDeletedEvent(@NotNull @NotNull ProtectionChunk protectionChunk)
      Construct the event.
      Parameters:
      protectionChunk - the chunk whose last protection was just deleted
  • Method Details

    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Required by Bukkit's event system.
      Returns:
      the handler list
    • getProtectionChunk

      @NotNull public @NotNull ProtectionChunk getProtectionChunk()
      Get the chunk.
      Returns:
      never null
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event