Class ScoreboardCommand


  • public class ScoreboardCommand
    extends java.lang.Object
    • 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
    • Constructor Detail

      • ScoreboardCommand

        public ScoreboardCommand()
    • 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
      • 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_)