Class GameEventStartEvent
java.lang.Object
org.bukkit.event.Event
dev.yowsef.stealablock.api.event.StealABlockEvent
dev.yowsef.stealablock.api.event.CancellableStealABlockEvent
dev.yowsef.stealablock.api.event.gameevent.GameEventStartEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Fired when a server-wide Game Event is about to start.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionGameEventStartEvent(@NotNull net.kyori.adventure.key.Key eventKey, int durationSeconds) -
Method Summary
Modifier and TypeMethodDescriptionint@NotNull net.kyori.adventure.key.Keystatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListvoidsetDurationSeconds(int durationSeconds) Methods inherited from class CancellableStealABlockEvent
isCancelled, setCancelledMethods inherited from class StealABlockEvent
getCauseMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
GameEventStartEvent
public GameEventStartEvent(@NotNull @NotNull net.kyori.adventure.key.Key eventKey, int durationSeconds)
-
-
Method Details
-
getEventKey
@NotNull public @NotNull net.kyori.adventure.key.Key getEventKey() -
getDurationSeconds
public int getDurationSeconds() -
setDurationSeconds
public void setDurationSeconds(int durationSeconds) -
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-