Class DefaultGameModeCommands

java.lang.Object
net.minecraft.server.commands.DefaultGameModeCommands

public class DefaultGameModeCommands extends Object
  • Constructor Details

    • DefaultGameModeCommands

      public DefaultGameModeCommands()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher)
    • setMode

      private static int setMode(CommandSourceStack pCommandSource, GameType pGamemode)
      Sets the GameType of the player who ran the command.