Package net.minecraft.server.commands
Class ScoreboardCommand
java.lang.Object
net.minecraft.server.commands.ScoreboardCommand
- 
Nested Class Summary
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> addNumberFormats(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_313757_, ScoreboardCommand.NumberFormatCommandExecutor p_313912_) private static intaddObjective(CommandSourceStack p_138503_, String p_138504_, ObjectiveCriteria p_138505_, Component p_138506_) private static intaddScore(CommandSourceStack p_138545_, Collection<ScoreHolder> p_138546_, Objective p_138547_, int p_138548_) private static intclearDisplaySlot(CommandSourceStack p_138478_, DisplaySlot p_294251_) private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack>private static intenableTrigger(CommandSourceStack p_138515_, Collection<ScoreHolder> p_138516_, Objective p_138517_) private static ComponentgetFirstTargetName(Collection<ScoreHolder> p_313737_) private static intgetScore(CommandSourceStack p_138499_, ScoreHolder p_313820_, Objective p_138501_) private static intlistObjectives(CommandSourceStack p_138539_) private static intlistTrackedPlayers(CommandSourceStack p_138476_) private static intlistTrackedPlayerScores(CommandSourceStack p_138496_, ScoreHolder p_313835_) private static intperformOperation(CommandSourceStack p_138524_, Collection<ScoreHolder> p_138525_, Objective p_138526_, OperationArgument.Operation p_138527_, Collection<ScoreHolder> p_138528_, Objective p_138529_) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_138469_) private static intremoveObjective(CommandSourceStack p_138485_, Objective p_138486_) private static intremoveScore(CommandSourceStack p_138554_, Collection<ScoreHolder> p_138555_, Objective p_138556_, int p_138557_) private static intresetScore(CommandSourceStack p_138541_, Collection<ScoreHolder> p_138542_, Objective p_138543_) private static intresetScores(CommandSourceStack p_138508_, Collection<ScoreHolder> p_138509_) private static intsetDisplayAutoUpdate(CommandSourceStack p_313915_, Objective p_313747_, boolean p_313790_) private static intsetDisplayName(CommandSourceStack p_138492_, Objective p_138493_, Component p_138494_) private static intsetDisplaySlot(CommandSourceStack p_138481_, DisplaySlot p_294651_, Objective p_138483_) private static intsetObjectiveFormat(CommandSourceStack p_313788_, Objective p_313769_, NumberFormat p_313731_) private static intsetRenderType(CommandSourceStack p_138488_, Objective p_138489_, ObjectiveCriteria.RenderType p_138490_) private static intsetScore(CommandSourceStack p_138519_, Collection<ScoreHolder> p_138520_, Objective p_138521_, int p_138522_) private static intsetScoreDisplay(CommandSourceStack p_313937_, Collection<ScoreHolder> p_313923_, Objective p_313702_, Component p_313807_) private static intsetScoreNumberFormat(CommandSourceStack p_313794_, Collection<ScoreHolder> p_313780_, Objective p_313752_, NumberFormat p_313869_) private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>suggestTriggers(CommandSourceStack p_138511_, Collection<ScoreHolder> p_138512_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_138513_)  
- 
Field Details
- 
ERROR_OBJECTIVE_ALREADY_EXISTS
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_OBJECTIVE_ALREADY_EXISTS - 
ERROR_DISPLAY_SLOT_ALREADY_EMPTY
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_DISPLAY_SLOT_ALREADY_EMPTY - 
ERROR_DISPLAY_SLOT_ALREADY_SET
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_DISPLAY_SLOT_ALREADY_SET - 
ERROR_TRIGGER_ALREADY_ENABLED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TRIGGER_ALREADY_ENABLED - 
ERROR_NOT_TRIGGER
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_TRIGGER - 
ERROR_NO_VALUE
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_NO_VALUE 
 - 
 - 
Constructor Details
- 
ScoreboardCommand
public ScoreboardCommand() 
 - 
 - 
Method Details
- 
register
 - 
addNumberFormats
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> addNumberFormats(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_313757_, ScoreboardCommand.NumberFormatCommandExecutor p_313912_)  - 
createRenderTypeModify
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> createRenderTypeModify() - 
suggestTriggers
private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestTriggers(CommandSourceStack p_138511_, Collection<ScoreHolder> p_138512_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_138513_)  - 
getScore
private static int getScore(CommandSourceStack p_138499_, ScoreHolder p_313820_, Objective p_138501_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
getFirstTargetName
 - 
performOperation
private static int performOperation(CommandSourceStack p_138524_, Collection<ScoreHolder> p_138525_, Objective p_138526_, OperationArgument.Operation p_138527_, Collection<ScoreHolder> p_138528_, Objective p_138529_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
enableTrigger
private static int enableTrigger(CommandSourceStack p_138515_, Collection<ScoreHolder> p_138516_, Objective p_138517_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
resetScores
 - 
resetScore
private static int resetScore(CommandSourceStack p_138541_, Collection<ScoreHolder> p_138542_, Objective p_138543_)  - 
setScore
private static int setScore(CommandSourceStack p_138519_, Collection<ScoreHolder> p_138520_, Objective p_138521_, int p_138522_)  - 
setScoreDisplay
private static int setScoreDisplay(CommandSourceStack p_313937_, Collection<ScoreHolder> p_313923_, Objective p_313702_, @Nullable Component p_313807_)  - 
setScoreNumberFormat
private static int setScoreNumberFormat(CommandSourceStack p_313794_, Collection<ScoreHolder> p_313780_, Objective p_313752_, @Nullable NumberFormat p_313869_)  - 
addScore
private static int addScore(CommandSourceStack p_138545_, Collection<ScoreHolder> p_138546_, Objective p_138547_, int p_138548_)  - 
removeScore
private static int removeScore(CommandSourceStack p_138554_, Collection<ScoreHolder> p_138555_, Objective p_138556_, int p_138557_)  - 
listTrackedPlayers
 - 
listTrackedPlayerScores
 - 
clearDisplaySlot
private static int clearDisplaySlot(CommandSourceStack p_138478_, DisplaySlot p_294251_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
setDisplaySlot
private static int setDisplaySlot(CommandSourceStack p_138481_, DisplaySlot p_294651_, Objective p_138483_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
setDisplayName
private static int setDisplayName(CommandSourceStack p_138492_, Objective p_138493_, Component p_138494_)  - 
setDisplayAutoUpdate
private static int setDisplayAutoUpdate(CommandSourceStack p_313915_, Objective p_313747_, boolean p_313790_)  - 
setObjectiveFormat
private static int setObjectiveFormat(CommandSourceStack p_313788_, Objective p_313769_, @Nullable NumberFormat p_313731_)  - 
setRenderType
private static int setRenderType(CommandSourceStack p_138488_, Objective p_138489_, ObjectiveCriteria.RenderType p_138490_)  - 
removeObjective
 - 
addObjective
private static int addObjective(CommandSourceStack p_138503_, String p_138504_, ObjectiveCriteria p_138505_, Component p_138506_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
listObjectives
 
 -