public class GameModeCommand extends Object
| Constructor and Description |
|---|
GameModeCommand() |
| Modifier and Type | Method and 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) |
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static void setGameMode(ServerCommandSource source, ServerPlayerEntity player, GameMode gameMode)
private static int execute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Collection<ServerPlayerEntity> targets, GameMode gameMode)