Uses of Enum Class
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 io.papermc.paper.command.brigadier.argument
-
Uses of GameMode in moe.caramel.daydream.brigadier
Modifier and TypeFieldDescriptionstatic final SimpleArgument
<GameMode> Arguments.GAMEMODE
Example: "survival", "creative", "adventure", "spectator" -
Uses of GameMode in moe.caramel.daydream.packet
Modifier and TypeMethodDescriptionPlayerInfoUpdatePacket.PlayerData.gameMode()
Returns the value of thegameMode
record component.Modifier and TypeMethodDescriptionPlayerInfoUpdatePacket.addPlayer
(UUID profileId, com.mojang.authlib.GameProfile profile, boolean listed, int latency, GameMode gameMode, @Nullable Component playerListName, boolean showHat, int listOrder, @Nullable ChatSession chatSession) for Add Player ActionPlayerInfoUpdatePacket.updateGameMode
(UUID uuid, GameMode gameMode) for Update GameMode ActionModifierConstructorDescriptionPlayerData
(UUID profileId, @Nullable com.mojang.authlib.GameProfile profile, boolean listed, int latency, @Nullable GameMode gameMode, @Nullable Component playerListName, boolean showHat, int listOrder, @Nullable ChatSession chatSession) Creates an instance of aPlayerData
record class. -
Uses of GameMode in org.bukkit
Modifier and TypeMethodDescriptionGameMode.getByValue
(int value) Gets the GameMode represented by the specified valueBukkit.getDefaultGameMode()
Gets the defaultGameMode
for new players.Server.getDefaultGameMode()
Gets the defaultGameMode
for new players.static GameMode
Returns the enum constant of this class with the specified name.static GameMode[]
GameMode.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic void
Bukkit.setDefaultGameMode
(@NotNull GameMode mode) Sets the defaultGameMode
for new players.void
Server.setDefaultGameMode
(@NotNull GameMode mode) Sets the defaultGameMode
for new players. -
Uses of GameMode in org.bukkit.entity
Modifier and TypeMethodDescriptionHumanEntity.getGameMode()
Gets this human's currentGameMode
Player.getPreviousGameMode()
Gets this player's previousGameMode
Modifier and TypeMethodDescriptionvoid
HumanEntity.setGameMode
(@NotNull 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.ModifierConstructorDescriptionPlayerGameModeChangeEvent
(@NotNull Player player, @NotNull GameMode newGameMode) Deprecated.PlayerGameModeChangeEvent
(@NotNull Player player, @NotNull GameMode newGameMode, @NotNull PlayerGameModeChangeEvent.Cause cause, Component cancelMessage)