Package net.minecraft.server.commands
Class GameModeCommand
java.lang.Object
net.minecraft.server.commands.GameModeCommand
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
logGamemodeChange
(CommandSourceStack pSource, ServerPlayer pPlayer, GameType pGameType) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_137730_) private static boolean
setGameMode
(CommandSourceStack pSource, ServerPlayer pPlayer, GameType pGameMode) static void
setGameMode
(ServerPlayer pPlayer, GameType pGameMode) private static int
setMode
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137732_, Collection<ServerPlayer> p_137733_, GameType p_137734_)
-
Field Details
-
PERMISSION_LEVEL
public static final int PERMISSION_LEVEL- See Also:
-
-
Constructor Details
-
GameModeCommand
public GameModeCommand()
-
-
Method Details
-
register
-
logGamemodeChange
private static void logGamemodeChange(CommandSourceStack pSource, ServerPlayer pPlayer, GameType pGameType) -
setMode
private static int setMode(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137732_, Collection<ServerPlayer> p_137733_, GameType p_137734_) -
setGameMode
-
setGameMode
private static boolean setGameMode(CommandSourceStack pSource, ServerPlayer pPlayer, GameType pGameMode)
-