Class TypeParserArgumentType<T>

java.lang.Object
com.ultikits.ultitools.command.engine.TypeParserArgumentType<T>
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<T>, io.papermc.paper.command.brigadier.argument.CustomArgumentType<T,String>

final class TypeParserArgumentType<T> extends Object implements io.papermc.paper.command.brigadier.argument.CustomArgumentType<T,String>
Adapts a module's registered parser without a second string-dispatch implementation.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    (package private) static final class 
    Keeps module parser failures identifiable when a greedy array resolves its elements.

    Nested classes/interfaces inherited from interface io.papermc.paper.command.brigadier.argument.CustomArgumentType

    io.papermc.paper.command.brigadier.argument.CustomArgumentType.Converted<T,N>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final TypeParser<T>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.brigadier.arguments.ArgumentType<String>
     
    parse(com.mojang.brigadier.StringReader reader)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.papermc.paper.command.brigadier.argument.CustomArgumentType

    getExamples, listSuggestions, parse
  • Field Details

  • Constructor Details

    • TypeParserArgumentType

      TypeParserArgumentType(TypeParser<T> parser)
  • Method Details

    • parse

      public T parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<T>
      Specified by:
      parse in interface io.papermc.paper.command.brigadier.argument.CustomArgumentType<T,String>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getNativeType

      public com.mojang.brigadier.arguments.ArgumentType<String> getNativeType()
      Specified by:
      getNativeType in interface io.papermc.paper.command.brigadier.argument.CustomArgumentType<T,String>