Class RareSpawnsReadyEvent

java.lang.Object
org.bukkit.event.Event
valorless.rarespawns.api.events.RareSpawnsReadyEvent

public class RareSpawnsReadyEvent extends org.bukkit.event.Event
Event fired when RareSpawns has finished loading all rare entity definitions and is ready for gameplay. Used to signal to other plugins that RareSpawns is fully initialized.

This event is posted synchronously on the server thread.

Listen to this event to perform actions that depend on RareSpawns being fully initialized, such as spawning rares or integrating with other plugins.

  • 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
    protected boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new RareSpawnsReadyEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Calls the RareSpawnsReadyEvent on Bukkit's event bus.
    static org.bukkit.event.HandlerList
    Required boilerplate for Bukkit custom events.
    org.bukkit.event.HandlerList
    Required boilerplate for Bukkit custom events.

    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

    • called

      protected boolean called
  • Constructor Details

    • RareSpawnsReadyEvent

      public RareSpawnsReadyEvent()
      Creates a new RareSpawnsReadyEvent.
  • Method Details

    • callEvent

      public void callEvent()
      Calls the RareSpawnsReadyEvent on Bukkit's event bus. Ensures the event is only called once.
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Required boilerplate for Bukkit custom events.
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Required boilerplate for Bukkit custom events.
      Returns:
      static handler list