类 ParserBasedArgument<T>

java.lang.Object
net.minecraft.util.parsing.packrat.commands.ParserBasedArgument<T>
所有已实现的接口:
com.mojang.brigadier.arguments.ArgumentType<T>
直接已知子类:
ComponentArgument, ItemPredicateArgument, NbtTagArgument, StyleArgument

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

  • 构造器详细资料

  • 方法详细资料

    • parse

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

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_410523_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_409586_)
      指定者:
      listSuggestions 在接口中 com.mojang.brigadier.arguments.ArgumentType<T>