Class HudsReloadedEvent

java.lang.Object
org.bukkit.event.Event
io.github.nacvark.hudengine.api.event.HudsReloadedEvent

public final class HudsReloadedEvent extends org.bukkit.event.Event
Fired after the configuration has been recompiled and the new model is live.

Registered values and compass providers survive a reload untouched, so most plugins do not need this. It matters when you hold something derived from the compiled model — an element key for HudMetrics, say — because a reload can renumber those.

Not fired when a reload fails; the previous model stays live in that case.

  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    The HUDs the new model compiled, in compile order.

    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

    • HudsReloadedEvent

      public HudsReloadedEvent(List<String> huds)
  • Method Details

    • huds

      public List<String> huds()
      The HUDs the new model compiled, in compile order.
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()