Class GenTiersScheduleEvent
java.lang.Object
org.bukkit.event.Event
me.metallicgoat.tweaksaddon.api.events.gentiers.GenTiersScheduleEvent
- All Implemented Interfaces:
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionGenTiersScheduleEvent(GenTierState arenaState, GenTierLevel nextTier, Duration delay) -
Method Summary
Modifier and TypeMethodDescriptiongetArena()Get the state of the gen tiers in the arena.getDelay()Get the delay before the initial tier happens.static HandlerListGet the next tier level that the arena will upgrade to.voidSets the delay before the initial tier happens.voidsetNextTier(GenTierLevel nextTier) Sets the next tier level that the arena will upgrade to.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronousMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
GenTiersScheduleEvent
-
-
Method Details
-
getArena
- Specified by:
getArenain interfaceArenaEvent
-
getArenaState
Get the state of the gen tiers in the arena.- Returns:
- the current gen tier state of the arena
-
getNextTier
Get the next tier level that the arena will upgrade to.- Returns:
- the next tier level to be applied after the delay
-
setNextTier
Sets the next tier level that the arena will upgrade to.- Parameters:
nextTier- the next tier level to set after the delay
-
getDelay
Get the delay before the initial tier happens.- Returns:
- the delay before the first tier upgrade
-
setDelay
Sets the delay before the initial tier happens.- Parameters:
delay- the delay to set
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-