Class TriggerCommand

java.lang.Object
net.minecraft.command.impl.TriggerCommand

public class TriggerCommand extends Object
  • Field Details

    • 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 Details

    • TriggerCommand

      public TriggerCommand()
  • Method Details

    • register

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

      public static 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