Contents
Class ChangeGameModeEvent
java.lang.Object
com.hypixel.hytale.component.system.EcsEvent
com.hypixel.hytale.component.system.CancellableEcsEvent
com.hypixel.hytale.server.core.event.events.ecs.ChangeGameModeEvent
- All Implemented Interfaces:
ICancellableEcsEvent
An event that is called when a player entity is changing their game-mode.
If cancelled, the players game-mode will not be changed.
-
Constructor Summary
ConstructorsConstructorDescriptionChangeGameModeEvent(GameMode gameMode) Default Constructor for aChangeGameModeEventinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetGameMode(GameMode gameMode) Called to set the new game-mode that the player should be switching to.Methods inherited from class CancellableEcsEvent
isCancelled, setCancelled
-
Constructor Details
-
ChangeGameModeEvent
Default Constructor for aChangeGameModeEventinstance.- Parameters:
gameMode- TheGameModethat the player is changing to.
-
-
Method Details
-
getGameMode
-
setGameMode
-