public class PlayerGameModeChangeEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerGameModeChangeEvent(Player player,
GameMode gameMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(boolean cancelled) |
GameMode |
currentGameMode() |
boolean |
isIgnored() |
GameMode |
newGameMode() |
void |
setNewGamemode(GameMode gameMode) |
playerpublic PlayerGameModeChangeEvent(Player player, GameMode gameMode)
public boolean isIgnored()
isIgnored in interface Cancellablepublic void cancel(boolean cancelled)
cancel in interface Cancellablecancelled - set the cancellation state of the eventpublic GameMode newGameMode()
public GameMode currentGameMode()
public void setNewGamemode(GameMode gameMode)
Copyright © 2016. All rights reserved.