Class ParserBasedArgument<T>

java.lang.Object
net.minecraft.util.parsing.packrat.commands.ParserBasedArgument<T>
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<T>
Direct Known Subclasses:
ComponentArgument, ItemPredicateArgument, NbtTagArgument, StyleArgument

public abstract class ParserBasedArgument<T> extends Object implements com.mojang.brigadier.arguments.ArgumentType<T>
  • Field Details

  • Constructor Details

  • Method Details

    • parse

      public T parse(com.mojang.brigadier.StringReader p_410815_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<T>
      Throws:
      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_)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<T>