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
ConstructorsConstructorDescriptionCreates the event with a non-null API instance. -
Method Summary
Modifier and TypeMethodDescriptiongetApi()Returns the API instance associated with this ready event.static org.bukkit.event.HandlerListStatic Bukkit handler accessor.org.bukkit.event.HandlerListBukkit handler accessor.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
UltimateBotReadyEvent
Creates the event with a non-null API instance.- Parameters:
api- initialized UltimateBot API
-
-
Method Details
-
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:
getHandlersin classorg.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
-