Uses of Enum Class
org.bukkit.GameMode
Packages that use GameMode
Package
Description
Arguments.
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
Methods in io.papermc.paper.command.brigadier.argument that return types with arguments of type GameMode -
Uses of GameMode in org.bukkit
Methods in org.bukkit that return GameModeModifier and TypeMethodDescriptionstatic @Nullable GameModeGameMode.getByValue(int value) Gets the GameMode represented by the specified valuestatic @NotNull GameModeBukkit.getDefaultGameMode()Gets the defaultGameModefor new players.@NotNull GameModeServer.getDefaultGameMode()Gets the defaultGameModefor new players.static GameModeReturns 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.Methods in org.bukkit with parameters of type GameModeModifier and TypeMethodDescriptionstatic voidBukkit.setDefaultGameMode(@NotNull GameMode mode) Sets the defaultGameModefor new players.voidServer.setDefaultGameMode(@NotNull GameMode mode) Sets the defaultGameModefor new players. -
Uses of GameMode in org.bukkit.entity
Methods in org.bukkit.entity that return GameModeModifier and TypeMethodDescriptionHumanEntity.getGameMode()Gets this human's currentGameModePlayer.getPreviousGameMode()Gets this player's previousGameModeMethods in org.bukkit.entity with parameters of type GameModeModifier and TypeMethodDescriptionvoidHumanEntity.setGameMode(GameMode mode) Sets this human's currentGameMode -
Uses of GameMode in org.bukkit.event.player
Methods in org.bukkit.event.player that return GameModeModifier and TypeMethodDescription@NotNull GameModePlayerGameModeChangeEvent.getNewGameMode()Gets the GameMode the player is switched to.Constructors in org.bukkit.event.player with parameters of type GameModeModifierConstructorDescriptionPlayerGameModeChangeEvent(@NotNull Player player, @NotNull GameMode newGameMode) Deprecated, for removal: This API element is subject to removal in a future version.PlayerGameModeChangeEvent(@NotNull Player player, @NotNull GameMode newGameMode, @NotNull PlayerGameModeChangeEvent.Cause cause, net.kyori.adventure.text.Component cancelMessage)