Package net.minecraft.src
Class ServerCommandScoreboard
java.lang.Object
net.minecraft.src.CommandBase
net.minecraft.src.ServerCommandScoreboard
- All Implemented Interfaces:
Comparable,ICommand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddObjective(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3) Handler for the 'scoreboard objectives add' command.addTabCompletionOptions(ICommandSender par1ICommandSender, String[] par2ArrayOfStr) Adds the strings available in this command to the given list of tab completion options.protected voidaddTeam(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3) Handler for the 'scoreboard teams add' command.protected voidemptyTeam(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3) Handler for the 'scoreboard teams empty' command.getCommandUsage(ICommandSender par1ICommandSender) protected voidgetObjectivesList(ICommandSender par1ICommandSender) Handler for the 'scoreboard objectives list' command.intReturn the required permission level for this command.protected Scoreboardprotected ScoreObjectivegetScoreObjective(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.protected ListgetScoreObjectivesList(boolean par1) If the parameter is true, does not return read-only entries.protected ScorePlayerTeamReturns the ScorePlayerTeam for the given team name.protected voidgetTeamList(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3) Handler for the 'scoreboard teams list' command.booleanisUsernameIndex(String[] par1ArrayOfStr, int par2) Return whether the specified command parameter index is a username parameter.protected voidjoinTeam(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3) Handler for the 'scoreboard teams join' command.protected voidleaveTeam(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3) Handler for the 'scoreboard teams leave' command.protected voidlistPlayers(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3) Handler for the 'scoreboard players list' command.voidprocessCommand(ICommandSender par1ICommandSender, String[] par2ArrayOfStr) protected voidremoveObjective(ICommandSender par1ICommandSender, String par2Str) Handler for the 'scoreboard objectives remove' command.protected voidremoveTeam(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3) Handler for the 'scoreboard teams remove' command.protected voidresetPlayerScore(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3) Handler for the 'scoreboard players reset' command.protected voidsetObjectivesDisplay(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3) Handler for the 'scoreboard objectives setdisplay' command.protected voidsetPlayerScore(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3) Handler for the 'scoreboard players [add|remove|set]' commands.protected voidsetTeamOption(ICommandSender par1ICommandSender, String[] par2ArrayOfStr, int par3) Handler for the 'scoreboard teams option' command.Methods inherited from class net.minecraft.src.CommandBase
canCommandSenderUseCommand, compareTo, compareTo, doesStringStartWith, func_110661_a, func_110662_c, func_110663_b, func_110664_a, func_110665_a, func_110666_a, func_82360_a, func_82361_a, func_96332_d, func_96333_a, getCommandAliases, getCommandSenderAsPlayer, getListOfStringsFromIterableMatchingLastWord, getListOfStringsMatchingLastWord, getPlayer, joinNiceString, notifyAdmins, notifyAdmins, parseDouble, parseInt, parseIntBounded, parseIntWithMin, setAdminCommander
-
Constructor Details
-
ServerCommandScoreboard
public ServerCommandScoreboard()
-
-
Method Details
-
getCommandName
-
getRequiredPermissionLevel
public int getRequiredPermissionLevel()Return the required permission level for this command.- Overrides:
getRequiredPermissionLevelin classCommandBase
-
getCommandUsage
-
processCommand
-
getScoreboardFromWorldServer
-
getScoreObjective
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
Returns the ScorePlayerTeam for the given team name. -
addObjective
Handler for the 'scoreboard objectives add' command. -
addTeam
Handler for the 'scoreboard teams add' command. -
setTeamOption
Handler for the 'scoreboard teams option' command. -
removeTeam
Handler for the 'scoreboard teams remove' command. -
getTeamList
Handler for the 'scoreboard teams list' command. -
joinTeam
Handler for the 'scoreboard teams join' command. -
leaveTeam
Handler for the 'scoreboard teams leave' command. -
emptyTeam
Handler for the 'scoreboard teams empty' command. -
removeObjective
Handler for the 'scoreboard objectives remove' command. -
getObjectivesList
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
Handler for the 'scoreboard players list' command. -
setPlayerScore
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
Adds the strings available in this command to the given list of tab completion options.- Specified by:
addTabCompletionOptionsin interfaceICommand- Overrides:
addTabCompletionOptionsin classCommandBase
-
getScoreObjectivesList
If the parameter is true, does not return read-only entries. -
isUsernameIndex
Return whether the specified command parameter index is a username parameter.- Specified by:
isUsernameIndexin interfaceICommand- Overrides:
isUsernameIndexin classCommandBase
-