Package cn.nukkit.event.player
Class PlayerGameModeChangeEvent
java.lang.Object
cn.nukkit.event.Event
cn.nukkit.event.player.PlayerEvent
cn.nukkit.event.player.PlayerGameModeChangeEvent
- All Implemented Interfaces:
Cancellable
-
Field Summary
Fields inherited from class cn.nukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionPlayerGameModeChangeEvent
(Player player, int newGameMode, AdventureSettings newAdventureSettings) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
int
void
setNewAdventureSettings
(AdventureSettings newAdventureSettings) Methods inherited from class cn.nukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class cn.nukkit.event.Event
getEventName, isCancelled, setCancelled, setCancelled
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cn.nukkit.event.Cancellable
isCancelled, setCancelled, setCancelled
-
Field Details
-
gamemode
protected final int gamemode -
newAdventureSettings
-
-
Constructor Details
-
PlayerGameModeChangeEvent
public PlayerGameModeChangeEvent(Player player, int newGameMode, AdventureSettings newAdventureSettings)
-
-
Method Details
-
getHandlers
-
getNewGamemode
public int getNewGamemode() -
getNewAdventureSettings
-
setNewAdventureSettings
-