Package net.minecraft.command.impl
Class ScoreboardCommand
java.lang.Object
net.minecraft.command.impl.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
(CommandSource p_198629_0_, String p_198629_1_, ScoreCriteria p_198629_2_, ITextComponent p_198629_3_) private static int
addScore
(CommandSource p_198633_0_, Collection<String> p_198633_1_, ScoreObjective p_198633_2_, int p_198633_3_) private static int
clearDisplaySlot
(CommandSource p_198632_0_, int p_198632_1_) private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource>
private static int
enableTrigger
(CommandSource p_198644_0_, Collection<String> p_198644_1_, ScoreObjective p_198644_2_) private static int
getScore
(CommandSource p_198634_0_, String p_198634_1_, ScoreObjective p_198634_2_) private static int
listObjectives
(CommandSource p_198662_0_) private static int
listTrackedPlayers
(CommandSource p_198661_0_) private static int
listTrackedPlayerScores
(CommandSource p_198643_0_, String p_198643_1_) private static int
performOperation
(CommandSource p_198658_0_, Collection<String> p_198658_1_, ScoreObjective p_198658_2_, OperationArgument.IOperation p_198658_3_, Collection<String> p_198658_4_, ScoreObjective p_198658_5_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198647_0_) private static int
removeObjective
(CommandSource p_198637_0_, ScoreObjective p_198637_1_) private static int
removeScore
(CommandSource p_198651_0_, Collection<String> p_198651_1_, ScoreObjective p_198651_2_, int p_198651_3_) private static int
resetScore
(CommandSource p_198656_0_, Collection<String> p_198656_1_, ScoreObjective p_198656_2_) private static int
resetScores
(CommandSource p_198654_0_, Collection<String> p_198654_1_) private static int
setDisplayName
(CommandSource p_211749_0_, ScoreObjective p_211749_1_, ITextComponent p_211749_2_) private static int
setDisplaySlot
(CommandSource p_198659_0_, int p_198659_1_, ScoreObjective p_198659_2_) private static int
setRenderType
(CommandSource p_211910_0_, ScoreObjective p_211910_1_, ScoreCriteria.RenderType p_211910_2_) private static int
setScore
(CommandSource p_198653_0_, Collection<String> p_198653_1_, ScoreObjective p_198653_2_, int p_198653_3_) private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestTriggers
(CommandSource p_198641_0_, Collection<String> p_198641_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_198641_2_)
-
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<CommandSource> createRenderTypeModify() -
suggestTriggers
private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestTriggers(CommandSource p_198641_0_, Collection<String> p_198641_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_198641_2_) -
getScore
private static int getScore(CommandSource p_198634_0_, String p_198634_1_, ScoreObjective p_198634_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
performOperation
private static int performOperation(CommandSource p_198658_0_, Collection<String> p_198658_1_, ScoreObjective p_198658_2_, OperationArgument.IOperation p_198658_3_, Collection<String> p_198658_4_, ScoreObjective p_198658_5_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
enableTrigger
private static int enableTrigger(CommandSource p_198644_0_, Collection<String> p_198644_1_, ScoreObjective p_198644_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
resetScores
-
resetScore
private static int resetScore(CommandSource p_198656_0_, Collection<String> p_198656_1_, ScoreObjective p_198656_2_) -
setScore
private static int setScore(CommandSource p_198653_0_, Collection<String> p_198653_1_, ScoreObjective p_198653_2_, int p_198653_3_) -
addScore
private static int addScore(CommandSource p_198633_0_, Collection<String> p_198633_1_, ScoreObjective p_198633_2_, int p_198633_3_) -
removeScore
private static int removeScore(CommandSource p_198651_0_, Collection<String> p_198651_1_, ScoreObjective p_198651_2_, int p_198651_3_) -
listTrackedPlayers
-
listTrackedPlayerScores
-
clearDisplaySlot
private static int clearDisplaySlot(CommandSource p_198632_0_, int p_198632_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setDisplaySlot
private static int setDisplaySlot(CommandSource p_198659_0_, int p_198659_1_, ScoreObjective p_198659_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setDisplayName
private static int setDisplayName(CommandSource p_211749_0_, ScoreObjective p_211749_1_, ITextComponent p_211749_2_) -
setRenderType
private static int setRenderType(CommandSource p_211910_0_, ScoreObjective p_211910_1_, ScoreCriteria.RenderType p_211910_2_) -
removeObjective
-
addObjective
private static int addObjective(CommandSource p_198629_0_, String p_198629_1_, ScoreCriteria p_198629_2_, ITextComponent p_198629_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listObjectives
-