Class uSkyBlockEvent
java.lang.Object
org.bukkit.event.Event
us.talabrek.ultimateskyblock.api.event.uSkyBlockEvent
- Direct Known Subclasses:
uSkyBlockScoreChangedEvent
public class uSkyBlockEvent
extends org.bukkit.event.Event
Event fired when changes occur in the uSkyBlock plugin that might be of interest to
other plugins.
Note: is fired asynchronously.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionuSkyBlockEvent
(org.bukkit.entity.Player player, uSkyBlockAPI api, uSkyBlockEvent.Cause cause) -
Method Summary
Modifier and TypeMethodDescriptiongetAPI()
Returns a handle to the API - can be used to retrieve state-changes.getCause()
Returns the cause of the event.static org.bukkit.event.HandlerList
Returns the handlers listening to this event.org.bukkit.event.HandlerList
Returns the handlers listening to this event.org.bukkit.entity.Player
Returns the player involved/triggering the update.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
uSkyBlockEvent
public uSkyBlockEvent(org.bukkit.entity.Player player, uSkyBlockAPI api, uSkyBlockEvent.Cause cause)
-
-
Method Details
-
getPlayer
public org.bukkit.entity.Player getPlayer()Returns the player involved/triggering the update. Note: May benull
.- Returns:
- the player involved/triggering the update.
-
getAPI
Returns a handle to the API - can be used to retrieve state-changes. Note: Cannot be null, but can be disabled.- Returns:
- a handle to the API - can be used to retrieve state-changes.
-
getCause
Returns the cause of the event. May be used to decide whether any actions are required. Note: Cannot be null.- Returns:
- the cause of the event.
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()Returns the handlers listening to this event.- Specified by:
getHandlers
in classorg.bukkit.event.Event
- Returns:
- the handlers listening to this event.
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Returns the handlers listening to this event. Required for Bukkit-events.- Returns:
- the handlers listening to this event.
-