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 source, ServerPlayer player, GameType gameType) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher) private static int
setMode
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> source, Collection<ServerPlayer> players, GameType gameType)
-
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 source, ServerPlayer player, GameType gameType) -
setMode
private static int setMode(com.mojang.brigadier.context.CommandContext<CommandSourceStack> source, Collection<ServerPlayer> players, GameType gameType)
-