Package net.minecraft.server.command
Class GameModeCommand
java.lang.Object
net.minecraft.server.command.GameModeCommand
public class GameModeCommand extends Object
-
Constructor Summary
Constructors Constructor Description GameModeCommand()
-
Method Summary
Modifier and Type Method Description private static int
execute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Collection<ServerPlayerEntity> targets, GameMode gameMode)
static void
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static void
setGameMode(ServerCommandSource source, ServerPlayerEntity player, GameMode gameMode)
-
Constructor Details
-
GameModeCommand
public GameModeCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
setGameMode
private static void setGameMode(ServerCommandSource source, ServerPlayerEntity player, GameMode gameMode) -
execute
private static int execute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Collection<ServerPlayerEntity> targets, GameMode gameMode)
-