Package net.minecraft.server.commands
Class ScoreboardCommand
java.lang.Object
net.minecraft.server.commands.ScoreboardCommand
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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_EXISTSprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_OBJECTIVE_ALREADY_EXISTS
- 
ERROR_DISPLAY_SLOT_ALREADY_EMPTYprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_DISPLAY_SLOT_ALREADY_EMPTY
- 
ERROR_DISPLAY_SLOT_ALREADY_SETprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_DISPLAY_SLOT_ALREADY_SET
- 
ERROR_TRIGGER_ALREADY_ENABLEDprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TRIGGER_ALREADY_ENABLED
- 
ERROR_NOT_TRIGGERprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_TRIGGER
- 
ERROR_NO_VALUEprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_NO_VALUE
 
- 
- 
Constructor Details- 
ScoreboardCommandpublic ScoreboardCommand()
 
- 
- 
Method Details- 
register
- 
addNumberFormatsprivate static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> addNumberFormats(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_313757_, ScoreboardCommand.NumberFormatCommandExecutor p_313912_) 
- 
createRenderTypeModifyprivate static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> createRenderTypeModify()
- 
suggestTriggersprivate static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestTriggers(CommandSourceStack p_138511_, Collection<ScoreHolder> p_138512_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_138513_) 
- 
getScoreprivate 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
- 
performOperationprivate 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
 
- 
enableTriggerprivate 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
- 
resetScoreprivate static int resetScore(CommandSourceStack p_138541_, Collection<ScoreHolder> p_138542_, Objective p_138543_) 
- 
setScoreprivate static int setScore(CommandSourceStack p_138519_, Collection<ScoreHolder> p_138520_, Objective p_138521_, int p_138522_) 
- 
setScoreDisplayprivate static int setScoreDisplay(CommandSourceStack p_313937_, Collection<ScoreHolder> p_313923_, Objective p_313702_, @Nullable Component p_313807_) 
- 
setScoreNumberFormatprivate static int setScoreNumberFormat(CommandSourceStack p_313794_, Collection<ScoreHolder> p_313780_, Objective p_313752_, @Nullable NumberFormat p_313869_) 
- 
addScoreprivate static int addScore(CommandSourceStack p_138545_, Collection<ScoreHolder> p_138546_, Objective p_138547_, int p_138548_) 
- 
removeScoreprivate static int removeScore(CommandSourceStack p_138554_, Collection<ScoreHolder> p_138555_, Objective p_138556_, int p_138557_) 
- 
listTrackedPlayers
- 
listTrackedPlayerScores
- 
clearDisplaySlotprivate static int clearDisplaySlot(CommandSourceStack p_138478_, DisplaySlot p_294251_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
setDisplaySlotprivate static int setDisplaySlot(CommandSourceStack p_138481_, DisplaySlot p_294651_, Objective p_138483_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
setDisplayNameprivate static int setDisplayName(CommandSourceStack p_138492_, Objective p_138493_, Component p_138494_) 
- 
setDisplayAutoUpdateprivate static int setDisplayAutoUpdate(CommandSourceStack p_313915_, Objective p_313747_, boolean p_313790_) 
- 
setObjectiveFormatprivate static int setObjectiveFormat(CommandSourceStack p_313788_, Objective p_313769_, @Nullable NumberFormat p_313731_) 
- 
setRenderTypeprivate static int setRenderType(CommandSourceStack p_138488_, Objective p_138489_, ObjectiveCriteria.RenderType p_138490_) 
- 
removeObjective
- 
addObjectiveprivate 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
 
-