类 TriggerCommand

java.lang.Object
net.minecraft.server.commands.TriggerCommand

public class TriggerCommand extends Object
  • 字段详细资料

    • 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
  • 构造器详细资料

    • TriggerCommand

      public TriggerCommand()
  • 方法详细资料

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher)
    • suggestObjectives

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

      private static int addValue(CommandSourceStack pSource, Score pObjective, int pAmount)
    • setValue

      private static int setValue(CommandSourceStack pSource, Score pObjective, int pValue)
    • simpleTrigger

      private static int simpleTrigger(CommandSourceStack pSource, Score pObjectives)
    • getScore

      private static Score getScore(ServerPlayer pPlayer, Objective pObjective) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      抛出:
      com.mojang.brigadier.exceptions.CommandSyntaxException