Class GenTiersActionEvent
java.lang.Object
org.bukkit.event.Event
me.metallicgoat.tweaksaddon.api.events.gentiers.GenTiersActionEvent
- All Implemented Interfaces:
ArenaEvent
Called when enough time has passed to execute the scheduled gen tier upgrade in an arena.
This event is not called for GenTierActionType.GAME_OVER,
as that one immediately changes the remaining round time after its GenTiersScheduleEvent.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionGenTiersActionEvent(GenTierState arenaState, GenTierLevel tier, boolean executeHandlers, boolean broadcastEarn) -
Method Summary
Modifier and TypeMethodDescriptiongetArena()Get the state of the gen tiers in the arena.static HandlerListgetTier()Get the tier level that is being applied.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
GenTiersActionEvent
public GenTiersActionEvent(GenTierState arenaState, GenTierLevel tier, boolean executeHandlers, boolean broadcastEarn)
-
-
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
-
getTier
Get the tier level that is being applied.- Returns:
- the tier level being applied
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-