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) |
player
public PlayerGameModeChangeEvent(Player player, GameMode gameMode)
public boolean isIgnored()
isIgnored
in interface Cancellable
public void cancel(boolean cancelled)
cancel
in interface Cancellable
cancelled
- set the cancellation state of the eventpublic GameMode newGameMode()
public GameMode currentGameMode()
public void setNewGamemode(GameMode gameMode)
Copyright © 2016. All rights reserved.