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 voidlogGamemodeChange(CommandSourceStack pSource, ServerPlayer pPlayer, GameType pGameType) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher) private static booleansetGameMode(CommandSourceStack pSource, ServerPlayer pPlayer, GameType pGameMode) static voidsetGameMode(ServerPlayer pPlayer, GameType pGameMode) private static intsetMode(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pSource, Collection<ServerPlayer> pPlayers, GameType pGameType)
-
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> pSource, Collection<ServerPlayer> pPlayers, GameType pGameType) -
setGameMode
-
setGameMode
private static boolean setGameMode(CommandSourceStack pSource, ServerPlayer pPlayer, GameType pGameMode)
-