Package net.minecraft.server.commands
Class ScoreboardCommand
java.lang.Object
net.minecraft.server.commands.ScoreboardCommand
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
addObjective
(CommandSourceStack p_138503_, String p_138504_, ObjectiveCriteria p_138505_, Component p_138506_) private static int
addScore
(CommandSourceStack p_138545_, Collection<String> p_138546_, Objective p_138547_, int p_138548_) private static int
clearDisplaySlot
(CommandSourceStack p_138478_, DisplaySlot p_294251_) private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack>
private static int
enableTrigger
(CommandSourceStack p_138515_, Collection<String> p_138516_, Objective p_138517_) private static int
getScore
(CommandSourceStack p_138499_, String p_138500_, Objective p_138501_) private static int
listObjectives
(CommandSourceStack p_138539_) private static int
listTrackedPlayers
(CommandSourceStack p_138476_) private static int
listTrackedPlayerScores
(CommandSourceStack p_138496_, String p_138497_) private static int
performOperation
(CommandSourceStack p_138524_, Collection<String> p_138525_, Objective p_138526_, OperationArgument.Operation p_138527_, Collection<String> p_138528_, Objective p_138529_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_138469_) private static int
removeObjective
(CommandSourceStack p_138485_, Objective p_138486_) private static int
removeScore
(CommandSourceStack p_138554_, Collection<String> p_138555_, Objective p_138556_, int p_138557_) private static int
resetScore
(CommandSourceStack p_138541_, Collection<String> p_138542_, Objective p_138543_) private static int
resetScores
(CommandSourceStack p_138508_, Collection<String> p_138509_) private static int
setDisplayName
(CommandSourceStack p_138492_, Objective p_138493_, Component p_138494_) private static int
setDisplaySlot
(CommandSourceStack p_138481_, DisplaySlot p_294651_, Objective p_138483_) private static int
setRenderType
(CommandSourceStack p_138488_, Objective p_138489_, ObjectiveCriteria.RenderType p_138490_) private static int
setScore
(CommandSourceStack p_138519_, Collection<String> p_138520_, Objective p_138521_, int p_138522_) private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestTriggers
(CommandSourceStack p_138511_, Collection<String> 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
-
createRenderTypeModify
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> createRenderTypeModify() -
suggestTriggers
private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestTriggers(CommandSourceStack p_138511_, Collection<String> p_138512_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_138513_) -
getScore
private static int getScore(CommandSourceStack p_138499_, String p_138500_, Objective p_138501_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
performOperation
private static int performOperation(CommandSourceStack p_138524_, Collection<String> p_138525_, Objective p_138526_, OperationArgument.Operation p_138527_, Collection<String> 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<String> 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<String> p_138542_, Objective p_138543_) -
setScore
private static int setScore(CommandSourceStack p_138519_, Collection<String> p_138520_, Objective p_138521_, int p_138522_) -
addScore
private static int addScore(CommandSourceStack p_138545_, Collection<String> p_138546_, Objective p_138547_, int p_138548_) -
removeScore
private static int removeScore(CommandSourceStack p_138554_, Collection<String> 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_) -
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
-