public class CommandScoreboard extends CommandBase
CommandBase.CoordinateArg
Constructor and Description |
---|
CommandScoreboard() |
Modifier and Type | Method and Description |
---|---|
protected void |
addObjective(ICommandSender sender,
java.lang.String[] commandArgs,
int argStartIndex,
MinecraftServer server) |
protected void |
addPlayerScore(ICommandSender sender,
java.lang.String[] args,
int startIndex,
MinecraftServer server) |
protected void |
addTeam(ICommandSender sender,
java.lang.String[] args,
int startIndex,
MinecraftServer server) |
protected void |
applyPlayerOperation(ICommandSender sender,
java.lang.String[] args,
int startIndex,
MinecraftServer server) |
protected void |
applyPlayerTag(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args,
int startIndex) |
protected ScoreObjective |
convertToObjective(java.lang.String name,
boolean forWrite,
MinecraftServer server) |
protected ScorePlayerTeam |
convertToTeam(java.lang.String name,
MinecraftServer server) |
protected void |
emptyTeam(ICommandSender sender,
java.lang.String[] args,
int startIndex,
MinecraftServer server) |
protected void |
enablePlayerTrigger(ICommandSender sender,
java.lang.String[] args,
int startIndex,
MinecraftServer server) |
void |
execute(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args) |
java.lang.String |
getName() |
protected java.util.List<java.lang.String> |
getObjectiveNames(boolean writableOnly,
MinecraftServer server) |
int |
getRequiredPermissionLevel() |
protected Scoreboard |
getScoreboard(MinecraftServer server) |
java.util.List<java.lang.String> |
getTabCompletions(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args,
BlockPos targetPos) |
protected java.util.List<java.lang.String> |
getTriggerNames(MinecraftServer server) |
java.lang.String |
getUsage(ICommandSender sender) |
boolean |
isUsernameIndex(java.lang.String[] args,
int index) |
protected void |
joinTeam(ICommandSender sender,
java.lang.String[] args,
int startIndex,
MinecraftServer server) |
protected void |
leaveTeam(ICommandSender sender,
java.lang.String[] args,
int startIndex,
MinecraftServer server) |
protected void |
listObjectives(ICommandSender sender,
MinecraftServer server) |
protected void |
listPlayers(ICommandSender sender,
java.lang.String[] args,
int startIndex,
MinecraftServer server) |
protected void |
listTeams(ICommandSender sender,
java.lang.String[] args,
int startIndex,
MinecraftServer server) |
protected void |
removeObjective(ICommandSender sender,
java.lang.String name,
MinecraftServer server) |
protected void |
removeTeam(ICommandSender sender,
java.lang.String[] args,
int startIndex,
MinecraftServer server) |
protected void |
resetPlayerScore(ICommandSender sender,
java.lang.String[] args,
int startIndex,
MinecraftServer server) |
protected void |
setDisplayObjective(ICommandSender sender,
java.lang.String[] args,
int startIndex,
MinecraftServer server) |
protected void |
setTeamOption(ICommandSender sender,
java.lang.String[] args,
int startIndex,
MinecraftServer server) |
protected void |
testPlayerScore(ICommandSender sender,
java.lang.String[] args,
int startIndex,
MinecraftServer server) |
buildString, checkPermission, compareTo, convertArgToBlockState, convertArgToBlockStatePredicate, doesStringStartWith, entityToNBT, getAliases, getBlockByText, getChatComponentFromNthArg, getChatComponentFromNthArg, getCommandSenderAsPlayer, getEntity, getEntity, getEntityList, getEntityName, getItemByText, getListOfStringsMatchingLastWord, getListOfStringsMatchingLastWord, getPlayer, getPlayerName, getPlayers, getTabCompletionCoordinate, getTabCompletionCoordinateXZ, join, joinNiceString, joinNiceStringFromCollection, notifyCommandListener, notifyCommandListener, parseBlockPos, parseBoolean, parseCoordinate, parseCoordinate, parseDouble, parseDouble, parseDouble, parseDouble, parseDouble, parseInt, parseInt, parseInt, parseLong, parseLong, setCommandListener, toSyntaxException
public java.lang.String getName()
public int getRequiredPermissionLevel()
getRequiredPermissionLevel
in class CommandBase
public java.lang.String getUsage(ICommandSender sender)
public void execute(MinecraftServer server, ICommandSender sender, java.lang.String[] args) throws CommandException
CommandException
protected Scoreboard getScoreboard(MinecraftServer server)
protected ScoreObjective convertToObjective(java.lang.String name, boolean forWrite, MinecraftServer server) throws CommandException
CommandException
protected ScorePlayerTeam convertToTeam(java.lang.String name, MinecraftServer server) throws CommandException
CommandException
protected void addObjective(ICommandSender sender, java.lang.String[] commandArgs, int argStartIndex, MinecraftServer server) throws CommandException
CommandException
protected void addTeam(ICommandSender sender, java.lang.String[] args, int startIndex, MinecraftServer server) throws CommandException
CommandException
protected void setTeamOption(ICommandSender sender, java.lang.String[] args, int startIndex, MinecraftServer server) throws CommandException
CommandException
protected void removeTeam(ICommandSender sender, java.lang.String[] args, int startIndex, MinecraftServer server) throws CommandException
CommandException
protected void listTeams(ICommandSender sender, java.lang.String[] args, int startIndex, MinecraftServer server) throws CommandException
CommandException
protected void joinTeam(ICommandSender sender, java.lang.String[] args, int startIndex, MinecraftServer server) throws CommandException
CommandException
protected void leaveTeam(ICommandSender sender, java.lang.String[] args, int startIndex, MinecraftServer server) throws CommandException
CommandException
protected void emptyTeam(ICommandSender sender, java.lang.String[] args, int startIndex, MinecraftServer server) throws CommandException
CommandException
protected void removeObjective(ICommandSender sender, java.lang.String name, MinecraftServer server) throws CommandException
CommandException
protected void listObjectives(ICommandSender sender, MinecraftServer server) throws CommandException
CommandException
protected void setDisplayObjective(ICommandSender sender, java.lang.String[] args, int startIndex, MinecraftServer server) throws CommandException
CommandException
protected void listPlayers(ICommandSender sender, java.lang.String[] args, int startIndex, MinecraftServer server) throws CommandException
CommandException
protected void addPlayerScore(ICommandSender sender, java.lang.String[] args, int startIndex, MinecraftServer server) throws CommandException
CommandException
protected void resetPlayerScore(ICommandSender sender, java.lang.String[] args, int startIndex, MinecraftServer server) throws CommandException
CommandException
protected void enablePlayerTrigger(ICommandSender sender, java.lang.String[] args, int startIndex, MinecraftServer server) throws CommandException
CommandException
protected void testPlayerScore(ICommandSender sender, java.lang.String[] args, int startIndex, MinecraftServer server) throws CommandException
CommandException
protected void applyPlayerOperation(ICommandSender sender, java.lang.String[] args, int startIndex, MinecraftServer server) throws CommandException
CommandException
protected void applyPlayerTag(MinecraftServer server, ICommandSender sender, java.lang.String[] args, int startIndex) throws CommandException
CommandException
public java.util.List<java.lang.String> getTabCompletions(MinecraftServer server, ICommandSender sender, java.lang.String[] args, @Nullable BlockPos targetPos)
getTabCompletions
in interface ICommand
getTabCompletions
in class CommandBase
protected java.util.List<java.lang.String> getObjectiveNames(boolean writableOnly, MinecraftServer server)
protected java.util.List<java.lang.String> getTriggerNames(MinecraftServer server)
public boolean isUsernameIndex(java.lang.String[] args, int index)
isUsernameIndex
in interface ICommand
isUsernameIndex
in class CommandBase