Class TriggerCommand


  • public class TriggerCommand
    extends java.lang.Object
    • Field Detail

      • ERROR_NOT_PRIMED

        private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_PRIMED
      • ERROR_INVALID_OBJECTIVE

        private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INVALID_OBJECTIVE
    • Constructor Detail

      • TriggerCommand

        public TriggerCommand()
    • Method Detail

      • register

        public static void register​(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198852_0_)
      • suggestObjectives

        public static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestObjectives​(CommandSource p_198850_0_,
                                                                                                                            com.mojang.brigadier.suggestion.SuggestionsBuilder p_198850_1_)
      • addValue

        private static int addValue​(CommandSource p_201479_0_,
                                    Score p_201479_1_,
                                    int p_201479_2_)
      • setValue

        private static int setValue​(CommandSource p_201478_0_,
                                    Score p_201478_1_,
                                    int p_201478_2_)
      • simpleTrigger

        private static int simpleTrigger​(CommandSource p_201477_0_,
                                         Score p_201477_1_)
      • getScore

        private static Score getScore​(ServerPlayerEntity p_198848_0_,
                                      ScoreObjective p_198848_1_)
                               throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException