Package net.minecraft.command.impl
Class ScoreboardCommand
- java.lang.Object
-
- net.minecraft.command.impl.ScoreboardCommand
-
public class ScoreboardCommand extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_DISPLAY_SLOT_ALREADY_EMPTY
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_DISPLAY_SLOT_ALREADY_SET
private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
ERROR_NO_VALUE
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_NOT_TRIGGER
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_OBJECTIVE_ALREADY_EXISTS
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TRIGGER_ALREADY_ENABLED
-
Constructor Summary
Constructors Constructor Description ScoreboardCommand()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static int
addObjective(CommandSource p_198629_0_, java.lang.String p_198629_1_, ScoreCriteria p_198629_2_, ITextComponent p_198629_3_)
private static int
addScore(CommandSource p_198633_0_, java.util.Collection<java.lang.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>
createRenderTypeModify()
private static int
enableTrigger(CommandSource p_198644_0_, java.util.Collection<java.lang.String> p_198644_1_, ScoreObjective p_198644_2_)
private static int
getScore(CommandSource p_198634_0_, java.lang.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_, java.lang.String p_198643_1_)
private static int
performOperation(CommandSource p_198658_0_, java.util.Collection<java.lang.String> p_198658_1_, ScoreObjective p_198658_2_, OperationArgument.IOperation p_198658_3_, java.util.Collection<java.lang.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_, java.util.Collection<java.lang.String> p_198651_1_, ScoreObjective p_198651_2_, int p_198651_3_)
private static int
resetScore(CommandSource p_198656_0_, java.util.Collection<java.lang.String> p_198656_1_, ScoreObjective p_198656_2_)
private static int
resetScores(CommandSource p_198654_0_, java.util.Collection<java.lang.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_, java.util.Collection<java.lang.String> p_198653_1_, ScoreObjective p_198653_2_, int p_198653_3_)
private static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestTriggers(CommandSource p_198641_0_, java.util.Collection<java.lang.String> p_198641_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_198641_2_)
-
-
-
Field Detail
-
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
-
-
Method Detail
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198647_0_)
-
createRenderTypeModify
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> createRenderTypeModify()
-
suggestTriggers
private static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestTriggers(CommandSource p_198641_0_, java.util.Collection<java.lang.String> p_198641_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_198641_2_)
-
getScore
private static int getScore(CommandSource p_198634_0_, java.lang.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_, java.util.Collection<java.lang.String> p_198658_1_, ScoreObjective p_198658_2_, OperationArgument.IOperation p_198658_3_, java.util.Collection<java.lang.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_, java.util.Collection<java.lang.String> p_198644_1_, ScoreObjective p_198644_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
resetScores
private static int resetScores(CommandSource p_198654_0_, java.util.Collection<java.lang.String> p_198654_1_)
-
resetScore
private static int resetScore(CommandSource p_198656_0_, java.util.Collection<java.lang.String> p_198656_1_, ScoreObjective p_198656_2_)
-
setScore
private static int setScore(CommandSource p_198653_0_, java.util.Collection<java.lang.String> p_198653_1_, ScoreObjective p_198653_2_, int p_198653_3_)
-
addScore
private static int addScore(CommandSource p_198633_0_, java.util.Collection<java.lang.String> p_198633_1_, ScoreObjective p_198633_2_, int p_198633_3_)
-
removeScore
private static int removeScore(CommandSource p_198651_0_, java.util.Collection<java.lang.String> p_198651_1_, ScoreObjective p_198651_2_, int p_198651_3_)
-
listTrackedPlayers
private static int listTrackedPlayers(CommandSource p_198661_0_)
-
listTrackedPlayerScores
private static int listTrackedPlayerScores(CommandSource p_198643_0_, java.lang.String p_198643_1_)
-
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
private static int removeObjective(CommandSource p_198637_0_, ScoreObjective p_198637_1_)
-
addObjective
private static int addObjective(CommandSource p_198629_0_, java.lang.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
private static int listObjectives(CommandSource p_198662_0_)
-
-