Package | Description |
---|---|
org.bukkit |
More generalized classes in the API.
|
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.event.player |
Modifier and Type | Method and Description |
---|---|
static GameMode |
GameMode.getByValue(int value)
Deprecated.
Magic value
|
GameMode |
Server.getDefaultGameMode()
Gets the default
GameMode for new players. |
static GameMode |
Bukkit.getDefaultGameMode() |
static GameMode |
GameMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GameMode[] |
GameMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
Server.setDefaultGameMode(GameMode mode)
Sets the default
GameMode for new players. |
static void |
Bukkit.setDefaultGameMode(GameMode mode) |
Modifier and Type | Method and Description |
---|---|
GameMode |
HumanEntity.getGameMode()
Gets this humans current
GameMode |
Modifier and Type | Method and Description |
---|---|
void |
HumanEntity.setGameMode(GameMode mode)
Sets this humans current
GameMode |
Modifier and Type | Method and Description |
---|---|
GameMode |
PlayerGameModeChangeEvent.getNewGameMode()
Gets the GameMode the player is switched to.
|
Constructor and Description |
---|
PlayerGameModeChangeEvent(Player player,
GameMode newGameMode) |
Copyright © 2014. All rights reserved.