Class BedwarsGameTickEvent
java.lang.Object
org.bukkit.event.Event
org.screamingsandals.bedwars.api.events.BedwarsGameTickEvent
public class BedwarsGameTickEvent
extends org.bukkit.event.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionBedwarsGameTickEvent
(Game game, int previousCountdown, GameStatus previousStatus, int countdown, GameStatus status, int nextCountdown, GameStatus nextStatus) -
Method Summary
Modifier and TypeMethodDescriptionint
getGame()
static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
int
int
boolean
boolean
boolean
void
preventContinuation
(boolean prevent) void
setNextCountdown
(int nextCountdown) void
setNextStatus
(GameStatus nextStatus) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
BedwarsGameTickEvent
public BedwarsGameTickEvent(Game game, int previousCountdown, GameStatus previousStatus, int countdown, GameStatus status, int nextCountdown, GameStatus nextStatus) - Parameters:
game
-previousCountdown
-previousStatus
-countdown
-status
-nextCountdown
-nextStatus
-
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getGame
- Returns:
-
getCountdown
public int getCountdown()- Returns:
-
getStatus
- Returns:
-
getNextCountdown
public int getNextCountdown()- Returns:
-
setNextCountdown
public void setNextCountdown(int nextCountdown) - Parameters:
nextCountdown
-
-
getNextStatus
- Returns:
-
setNextStatus
- Parameters:
nextStatus
-
-
getPreviousCountdown
public int getPreviousCountdown()- Returns:
-
getPreviousStatus
- Returns:
-
preventContinuation
public void preventContinuation(boolean prevent) - Parameters:
prevent
-
-
isNextCountdownChanged
public boolean isNextCountdownChanged()- Returns:
-
isNextStatusChanged
public boolean isNextStatusChanged()- Returns:
-
isNextTickChanged
public boolean isNextTickChanged()- Returns:
-