类 ScoreboardSlotArgument

java.lang.Object
net.minecraft.commands.arguments.ScoreboardSlotArgument
所有已实现的接口:
com.mojang.brigadier.arguments.ArgumentType<Integer>

public class ScoreboardSlotArgument extends Object implements com.mojang.brigadier.arguments.ArgumentType<Integer>
  • 字段详细资料

    • EXAMPLES

      private static final Collection<String> EXAMPLES
    • ERROR_INVALID_VALUE

      public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_VALUE
  • 构造器详细资料

    • ScoreboardSlotArgument

      private ScoreboardSlotArgument()
  • 方法详细资料

    • displaySlot

      public static ScoreboardSlotArgument displaySlot()
    • getDisplaySlot

      public static int getDisplaySlot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName)
    • parse

      public Integer parse(com.mojang.brigadier.StringReader pReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      指定者:
      parse 在接口中 com.mojang.brigadier.arguments.ArgumentType<Integer>
      抛出:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> pContext, com.mojang.brigadier.suggestion.SuggestionsBuilder pBuilder)
      指定者:
      listSuggestions 在接口中 com.mojang.brigadier.arguments.ArgumentType<Integer>
    • getExamples

      public Collection<String> getExamples()
      指定者:
      getExamples 在接口中 com.mojang.brigadier.arguments.ArgumentType<Integer>