Class GameModeCommand
java.lang.Object
net.minecraft.server.commands.GameModeCommand
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidlogGamemodeChange(CommandSourceStack source, ServerPlayer target, GameType newType) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher) private static booleansetGameMode(CommandSourceStack source, ServerPlayer player, GameType type) static voidsetGameMode(ServerPlayer player, GameType type) private static intsetMode(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, Collection<ServerPlayer> players, GameType type)
-
Field Details
-
PERMISSION_CHECK
-
-
Constructor Details
-
GameModeCommand
public GameModeCommand()
-
-
Method Details
-
register
-
logGamemodeChange
private static void logGamemodeChange(CommandSourceStack source, ServerPlayer target, GameType newType) -
setMode
private static int setMode(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, Collection<ServerPlayer> players, GameType type) -
setGameMode
-
setGameMode
-