public class ScoreboardCommand
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
DISPLAY_ALREADY_CLEAR_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
DISPLAY_ALREADY_SET_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
ENABLE_TRIGGER_FAILED |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
ENABLE_TRIGGER_INVALID |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
OBJECTIVE_ALREADY_EXISTS_EXCEPTION |
private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType |
SCOREBOARD_PLAYER_NOT_FOUND_EXCEPTION |
Constructor and Description |
---|
ScoreboardCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
addObjective(CommandSource source,
java.lang.String name,
ScoreCriteria criteria,
ITextComponent displayName) |
private static int |
addToPlayerScore(CommandSource source,
java.util.Collection<java.lang.String> targets,
ScoreObjective objective,
int amount) |
private static int |
applyScoreOperation(CommandSource source,
java.util.Collection<java.lang.String> targetEntities,
ScoreObjective targetObjectives,
OperationArgument.IOperation operation,
java.util.Collection<java.lang.String> sourceEntities,
ScoreObjective sourceObjective) |
private static int |
clearObjectiveDisplaySlot(CommandSource source,
int slotId) |
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> |
createRenderTypeArgument() |
private static int |
enableTrigger(CommandSource source,
java.util.Collection<java.lang.String> targets,
ScoreObjective objective) |
private static int |
getPlayerScore(CommandSource source,
java.lang.String player,
ScoreObjective objective) |
private static int |
listObjectives(CommandSource source) |
private static int |
listPlayers(CommandSource source) |
private static int |
listPlayerScores(CommandSource source,
java.lang.String player) |
static void |
register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher) |
private static int |
removeFromPlayerScore(CommandSource source,
java.util.Collection<java.lang.String> targets,
ScoreObjective objective,
int amount) |
private static int |
removeObjective(CommandSource source,
ScoreObjective objective) |
private static int |
resetPlayerAllScores(CommandSource source,
java.util.Collection<java.lang.String> targets) |
private static int |
resetPlayerScore(CommandSource source,
java.util.Collection<java.lang.String> targets,
ScoreObjective objective) |
private static int |
setDisplayName(CommandSource source,
ScoreObjective objective,
ITextComponent displayName) |
private static int |
setObjectiveDisplaySlot(CommandSource source,
int slotId,
ScoreObjective objective) |
private static int |
setPlayerScore(CommandSource source,
java.util.Collection<java.lang.String> targets,
ScoreObjective objective,
int newValue) |
private static int |
setRenderType(CommandSource source,
ScoreObjective objective,
ScoreCriteria.RenderType renderType) |
private static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
suggestTriggers(CommandSource source,
java.util.Collection<java.lang.String> targets,
com.mojang.brigadier.suggestion.SuggestionsBuilder suggestions) |
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OBJECTIVE_ALREADY_EXISTS_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType DISPLAY_ALREADY_CLEAR_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType DISPLAY_ALREADY_SET_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ENABLE_TRIGGER_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ENABLE_TRIGGER_INVALID
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType SCOREBOARD_PLAYER_NOT_FOUND_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher)
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> createRenderTypeArgument()
private static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestTriggers(CommandSource source, java.util.Collection<java.lang.String> targets, com.mojang.brigadier.suggestion.SuggestionsBuilder suggestions)
private static int getPlayerScore(CommandSource source, java.lang.String player, ScoreObjective objective) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int applyScoreOperation(CommandSource source, java.util.Collection<java.lang.String> targetEntities, ScoreObjective targetObjectives, OperationArgument.IOperation operation, java.util.Collection<java.lang.String> sourceEntities, ScoreObjective sourceObjective) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int enableTrigger(CommandSource source, java.util.Collection<java.lang.String> targets, ScoreObjective objective) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int resetPlayerAllScores(CommandSource source, java.util.Collection<java.lang.String> targets)
private static int resetPlayerScore(CommandSource source, java.util.Collection<java.lang.String> targets, ScoreObjective objective)
private static int setPlayerScore(CommandSource source, java.util.Collection<java.lang.String> targets, ScoreObjective objective, int newValue)
private static int addToPlayerScore(CommandSource source, java.util.Collection<java.lang.String> targets, ScoreObjective objective, int amount)
private static int removeFromPlayerScore(CommandSource source, java.util.Collection<java.lang.String> targets, ScoreObjective objective, int amount)
private static int listPlayers(CommandSource source)
private static int listPlayerScores(CommandSource source, java.lang.String player)
private static int clearObjectiveDisplaySlot(CommandSource source, int slotId) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setObjectiveDisplaySlot(CommandSource source, int slotId, ScoreObjective objective) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setDisplayName(CommandSource source, ScoreObjective objective, ITextComponent displayName)
private static int setRenderType(CommandSource source, ScoreObjective objective, ScoreCriteria.RenderType renderType)
private static int removeObjective(CommandSource source, ScoreObjective objective)
private static int addObjective(CommandSource source, java.lang.String name, ScoreCriteria criteria, ITextComponent displayName) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int listObjectives(CommandSource source)