| 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 | Description | 
|---|---|---|
| static GameMode | GameMode. getByValue(int value) | Deprecated.
 Magic value | 
| static GameMode | Bukkit. getDefaultGameMode() | Gets the default  GameModefor new players. | 
| GameMode | Server. getDefaultGameMode() | Gets the default  GameModefor new players. | 
| static GameMode | GameMode. valueOf(java.lang.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 | Description | 
|---|---|---|
| static void | Bukkit. setDefaultGameMode(GameMode mode) | Sets the default  GameModefor new players. | 
| void | Server. setDefaultGameMode(GameMode mode) | Sets the default  GameModefor new players. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| GameMode | HumanEntity. getGameMode() | Gets this human's current  GameMode | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | HumanEntity. setGameMode(GameMode mode) | Sets this human's current  GameMode | 
| Modifier and Type | Method | Description | 
|---|---|---|
| GameMode | PlayerGameModeChangeEvent. getNewGameMode() | Gets the GameMode the player is switched to. | 
| Constructor | Description | 
|---|---|
| PlayerGameModeChangeEvent(Player player,
                         GameMode newGameMode) | 
Copyright © 2018. All rights reserved.