Class ProtectionChunkAddedEvent

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

public class ProtectionChunkAddedEvent extends org.bukkit.event.Event
Called whenever a protection is created in a chunk that has no protections yet.
  • 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
    ProtectionChunkAddedEvent(@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

    • ProtectionChunkAddedEvent

      public ProtectionChunkAddedEvent(@NotNull @NotNull ProtectionChunk protectionChunk)
      Construct the event.
      Parameters:
      protectionChunk - the chunk that now has its first protection
  • 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