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
    Modifier and Type
    Class
    Description
    static enum 
     

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

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

    Constructors
    Constructor
    Description
    uSkyBlockEvent(org.bukkit.entity.Player player, uSkyBlockAPI api, uSkyBlockEvent.Cause cause)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a handle to the API - can be used to retrieve state-changes.
    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

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Returns the player involved/triggering the update. Note: May be null.
      Returns:
      the player involved/triggering the update.
    • getAPI

      public uSkyBlockAPI 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

      public uSkyBlockEvent.Cause 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 class org.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.