Class GameEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- com.ericlam.mc.minigames.core.event.GameEvent
-
- Direct Known Subclasses:
GameSectionEvent
,GameStateSwitchEvent
,InGameStateSwitchEvent
public abstract class GameEvent extends Event
遊戲事件
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
-
Constructor Summary
Constructors Constructor Description GameEvent(InGameState inGameState, GameState gameState, PlayerManager playerManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GameState
getGameState()
ImmutableList<GamePlayer>
getGamingPlayer()
static HandlerList
getHandlerList()
HandlerList
getHandlers()
InGameState
getInGameState()
ImmutableList<GamePlayer>
getSpectators()
ImmutableList<GamePlayer>
getTotalPlayers()
ImmutableList<GamePlayer>
getWaitingPlayer()
-
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
-
-
-
Constructor Detail
-
GameEvent
public GameEvent(@Nullable InGameState inGameState, @Nonnull GameState gameState, @Nonnull PlayerManager playerManager)
-
-
Method Detail
-
getHandlerList
public static HandlerList getHandlerList()
-
getInGameState
public InGameState getInGameState()
- Returns:
- 場地狀態
-
getGameState
public GameState getGameState()
- Returns:
- 遊戲狀態
-
getTotalPlayers
public ImmutableList<GamePlayer> getTotalPlayers()
- Returns:
- 所有遊戲玩家
-
getGamingPlayer
public ImmutableList<GamePlayer> getGamingPlayer()
- Returns:
- 所有遊戲中的玩家
-
getWaitingPlayer
public ImmutableList<GamePlayer> getWaitingPlayer()
- Returns:
- 所有投票等候的玩家
-
getSpectators
public ImmutableList<GamePlayer> getSpectators()
- Returns:
- 所有觀戰的玩家
-
getHandlers
@Nonnull public HandlerList getHandlers()
- Specified by:
getHandlers
in classEvent
-
-