Class GenTiersScheduleEvent

java.lang.Object
org.bukkit.event.Event
me.metallicgoat.tweaksaddon.api.events.gentiers.GenTiersScheduleEvent
All Implemented Interfaces:
ArenaEvent, Cancellable

public class GenTiersScheduleEvent extends Event implements ArenaEvent, Cancellable
Called when a gen tier upgrade is scheduled to occur in an arena.

This occurs either when the arena starts or when a previous tier upgrade has completed.

  • Constructor Details

  • Method Details

    • getArena

      public Arena getArena()
      Specified by:
      getArena in interface ArenaEvent
    • getArenaState

      public GenTierState getArenaState()
      Get the state of the gen tiers in the arena.
      Returns:
      the current gen tier state of the arena
    • getNextTier

      public GenTierLevel getNextTier()
      Get the next tier level that the arena will upgrade to.
      Returns:
      the next tier level to be applied after the delay
    • setNextTier

      public void setNextTier(GenTierLevel nextTier)
      Sets the next tier level that the arena will upgrade to.
      Parameters:
      nextTier - the next tier level to set after the delay
    • getDelay

      public Duration getDelay()
      Get the delay before the initial tier happens.
      Returns:
      the delay before the first tier upgrade
    • setDelay

      public void setDelay(Duration delay)
      Sets the delay before the initial tier happens.
      Parameters:
      delay - the delay to set
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()