Class ArenaRegenerationStartEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.ArenaRegenerationStartEvent
- All Implemented Interfaces:
ArenaEvent
Gets called when an arena starts to regenerate
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionArenaRegenerationStartEvent
(Arena arena, @Nullable CommandSenderWrapper sender, ArenaRegenerationStartEvent.Result result) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
Returns what actually should happen after this event.@Nullable CommandSender
Returns the person who started the regeneration.@Nullable CommandSenderWrapper
Returns the person who started this regeneration.void
Set what actually should happen after this event.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.marcely.bedwars.api.event.arena.ArenaEvent
getArena
-
Constructor Details
-
ArenaRegenerationStartEvent
public ArenaRegenerationStartEvent(Arena arena, @Nullable @Nullable CommandSenderWrapper sender, ArenaRegenerationStartEvent.Result result)
-
-
Method Details
-
getSender
Returns the person who started the regeneration.Can be
null
when something else (or nobody on this server) started it- Returns:
- The person who started it
-
getSenderWrapped
Returns the person who started this regeneration.Can be
null
when something else started it.- Returns:
- The person who started it
-
getResult
Returns what actually should happen after this event.- Returns:
- The result of this event
-
setResult
Set what actually should happen after this event.- Parameters:
result
- The new result
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-