Class TriggerCommand

java.lang.Object
net.minecraft.server.commands.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<CommandSourceStack> p_139142_)
    • suggestObjectives

      public static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestObjectives(CommandSourceStack p_139149_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_139150_)
    • addValue

      private static int addValue(CommandSourceStack p_139155_, Score p_139156_, int p_139157_)
    • setValue

      private static int setValue(CommandSourceStack p_139161_, Score p_139162_, int p_139163_)
    • simpleTrigger

      private static int simpleTrigger(CommandSourceStack p_139152_, Score p_139153_)
    • getScore

      private static Score getScore(ServerPlayer p_139139_, Objective p_139140_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException