Class ServerCommandScoreboard

java.lang.Object
net.minecraft.src.CommandBase
net.minecraft.src.ServerCommandScoreboard
All Implemented Interfaces:
Comparable, ICommand

public class ServerCommandScoreboard extends CommandBase
  • Constructor Details

    • ServerCommandScoreboard

      public ServerCommandScoreboard()
  • Method Details

    • getCommandName

      public String getCommandName()
    • getRequiredPermissionLevel

      public int getRequiredPermissionLevel()
      Return the required permission level for this command.
      Overrides:
      getRequiredPermissionLevel in class CommandBase
    • getCommandUsage

      public String getCommandUsage(ICommandSender par1ICommandSender)
    • processCommand

      public void processCommand(ICommandSender par1ICommandSender, String[] par2ArrayOfStr)
    • getScoreboardFromWorldServer

      protected Scoreboard getScoreboardFromWorldServer()
    • getScoreObjective

      protected ScoreObjective getScoreObjective(String par1Str, boolean par2)
      User-safe version of Scoreboard.getObjective, does checks against the objective not being found and whether it's read-only or not. If true, the second parameter makes the function throw an exception if the objective is read- only.
    • getTeam

      protected ScorePlayerTeam getTeam(String par1Str)
      Returns the ScorePlayerTeam for the given team name.
    • addObjective

      protected void addObjective(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3)
      Handler for the 'scoreboard objectives add' command.
    • addTeam

      protected void addTeam(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3)
      Handler for the 'scoreboard teams add' command.
    • setTeamOption

      protected void setTeamOption(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3)
      Handler for the 'scoreboard teams option' command.
    • removeTeam

      protected void removeTeam(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3)
      Handler for the 'scoreboard teams remove' command.
    • getTeamList

      protected void getTeamList(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3)
      Handler for the 'scoreboard teams list' command.
    • joinTeam

      protected void joinTeam(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3)
      Handler for the 'scoreboard teams join' command.
    • leaveTeam

      protected void leaveTeam(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3)
      Handler for the 'scoreboard teams leave' command.
    • emptyTeam

      protected void emptyTeam(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3)
      Handler for the 'scoreboard teams empty' command.
    • removeObjective

      protected void removeObjective(ICommandSender par1ICommandSender, String par2Str)
      Handler for the 'scoreboard objectives remove' command.
    • getObjectivesList

      protected void getObjectivesList(ICommandSender par1ICommandSender)
      Handler for the 'scoreboard objectives list' command.
    • setObjectivesDisplay

      protected void setObjectivesDisplay(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3)
      Handler for the 'scoreboard objectives setdisplay' command.
    • listPlayers

      protected void listPlayers(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3)
      Handler for the 'scoreboard players list' command.
    • setPlayerScore

      protected void setPlayerScore(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3)
      Handler for the 'scoreboard players [add|remove|set]' commands.
    • resetPlayerScore

      protected void resetPlayerScore(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3)
      Handler for the 'scoreboard players reset' command.
    • addTabCompletionOptions

      public List addTabCompletionOptions(ICommandSender par1ICommandSender, String[] par2ArrayOfStr)
      Adds the strings available in this command to the given list of tab completion options.
      Specified by:
      addTabCompletionOptions in interface ICommand
      Overrides:
      addTabCompletionOptions in class CommandBase
    • getScoreObjectivesList

      protected List getScoreObjectivesList(boolean par1)
      If the parameter is true, does not return read-only entries.
    • isUsernameIndex

      public boolean isUsernameIndex(String[] par1ArrayOfStr, int par2)
      Return whether the specified command parameter index is a username parameter.
      Specified by:
      isUsernameIndex in interface ICommand
      Overrides:
      isUsernameIndex in class CommandBase