public class ScoreboardCommand extends Object
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
OBJECTIVES_ADD_DUPLICATE_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
OBJECTIVES_DISPLAY_ALREADYEMPTY_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
OBJECTIVES_DISPLAY_ALREADYSET_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
PLAYERS_ENABLE_FAILED_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
PLAYERS_ENABLE_INVALID_EXCEPTION |
private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType |
PLAYERS_GET_NULL_EXCEPTION |
Constructor and Description |
---|
ScoreboardCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
executeAdd(ServerCommandSource source,
Collection<String> targets,
ScoreboardObjective objective,
int score) |
private static int |
executeAddObjective(ServerCommandSource source,
String objective,
ScoreboardCriterion criteria,
Text displayName) |
private static int |
executeClearDisplay(ServerCommandSource source,
int slot) |
private static int |
executeEnable(ServerCommandSource source,
Collection<String> targets,
ScoreboardObjective objective) |
private static int |
executeGet(ServerCommandSource source,
String target,
ScoreboardObjective objective) |
private static int |
executeListObjectives(ServerCommandSource source) |
private static int |
executeListPlayers(ServerCommandSource source) |
private static int |
executeListScores(ServerCommandSource source,
String target) |
private static int |
executeModifyObjective(ServerCommandSource source,
ScoreboardObjective objective,
Text displayName) |
private static int |
executeModifyRenderType(ServerCommandSource source,
ScoreboardObjective objective,
ScoreboardCriterion.RenderType type) |
private static int |
executeOperation(ServerCommandSource source,
Collection<String> targets,
ScoreboardObjective targetObjective,
OperationArgumentType.Operation operation,
Collection<String> sources,
ScoreboardObjective sourceObjectives) |
private static int |
executeRemove(ServerCommandSource source,
Collection<String> targets,
ScoreboardObjective objective,
int score) |
private static int |
executeRemoveObjective(ServerCommandSource source,
ScoreboardObjective objective) |
private static int |
executeReset(ServerCommandSource source,
Collection<String> targets) |
private static int |
executeReset(ServerCommandSource source,
Collection<String> targets,
ScoreboardObjective objective) |
private static int |
executeSet(ServerCommandSource source,
Collection<String> targets,
ScoreboardObjective objective,
int score) |
private static int |
executeSetDisplay(ServerCommandSource source,
int slot,
ScoreboardObjective objective) |
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> |
makeRenderTypeArguments() |
static void |
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) |
private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
suggestDisabled(ServerCommandSource source,
Collection<String> targets,
com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder) |
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OBJECTIVES_ADD_DUPLICATE_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OBJECTIVES_DISPLAY_ALREADYEMPTY_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OBJECTIVES_DISPLAY_ALREADYSET_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType PLAYERS_ENABLE_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType PLAYERS_ENABLE_INVALID_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType PLAYERS_GET_NULL_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> makeRenderTypeArguments()
private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestDisabled(ServerCommandSource source, Collection<String> targets, com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder)
private static int executeGet(ServerCommandSource source, String target, ScoreboardObjective objective) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int executeOperation(ServerCommandSource source, Collection<String> targets, ScoreboardObjective targetObjective, OperationArgumentType.Operation operation, Collection<String> sources, ScoreboardObjective sourceObjectives)
private static int executeEnable(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective)
private static int executeReset(ServerCommandSource source, Collection<String> targets)
private static int executeReset(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective)
private static int executeSet(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score)
private static int executeAdd(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score)
private static int executeRemove(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score)
private static int executeListPlayers(ServerCommandSource source)
private static int executeListScores(ServerCommandSource source, String target)
private static int executeClearDisplay(ServerCommandSource source, int slot) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int executeSetDisplay(ServerCommandSource source, int slot, ScoreboardObjective objective) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int executeModifyObjective(ServerCommandSource source, ScoreboardObjective objective, Text displayName)
private static int executeModifyRenderType(ServerCommandSource source, ScoreboardObjective objective, ScoreboardCriterion.RenderType type)
private static int executeRemoveObjective(ServerCommandSource source, ScoreboardObjective objective)
private static int executeAddObjective(ServerCommandSource source, String objective, ScoreboardCriterion criteria, Text displayName) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int executeListObjectives(ServerCommandSource source)