Uses of Enum
org.bukkit.GameMode
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.-
Uses of GameMode in org.bukkit
Modifier and TypeMethodDescriptionstatic GameMode
GameMode.getByValue
(int value) Deprecated.Magic valuestatic GameMode
Bukkit.getDefaultGameMode()
Gets the defaultGameMode
for new players.Server.getDefaultGameMode()
Gets the defaultGameMode
for new players.static GameMode
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 TypeMethodDescriptionstatic void
Bukkit.setDefaultGameMode
(GameMode mode) Sets the defaultGameMode
for new players.void
Server.setDefaultGameMode
(GameMode mode) Sets the defaultGameMode
for new players. -
Uses of GameMode in org.bukkit.entity
Modifier and TypeMethodDescriptionvoid
HumanEntity.setGameMode
(GameMode mode) Sets this human's currentGameMode
-
Uses of GameMode in org.bukkit.event.player
Modifier and TypeMethodDescriptionPlayerGameModeChangeEvent.getNewGameMode()
Gets the GameMode the player is switched to.