Class UltimateBotReadyEvent

java.lang.Object
org.bukkit.event.Event
com.monkey.ultimatebot.api.event.lifecycle.UltimateBotReadyEvent

public final class UltimateBotReadyEvent extends org.bukkit.event.Event
Bukkit event fired when the UltimateBot API is fully initialized and registered.

Plugins that depend on UltimateBot can listen to this event to safely obtain the API instance and perform initialization that requires bot services.

  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    Creates the event with a non-null API instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the API instance associated with this ready event.
    static org.bukkit.event.HandlerList
    Static Bukkit handler accessor.
    org.bukkit.event.HandlerList
    Bukkit handler accessor.

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UltimateBotReadyEvent

      public UltimateBotReadyEvent(UltimateBotAPI api)
      Creates the event with a non-null API instance.
      Parameters:
      api - initialized UltimateBot API
  • Method Details

    • getApi

      public UltimateBotAPI getApi()
      Returns the API instance associated with this ready event.
      Returns:
      ready API
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Bukkit handler accessor.
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      handlers for this event type
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Static Bukkit handler accessor.
      Returns:
      handlers for this event type