Class TokenArgumentType

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

final class TokenArgumentType extends Object implements io.papermc.paper.command.brigadier.argument.CustomArgumentType<String,String>
A whitespace-delimited Unicode token, or a Brigadier double-quoted string.
  • Nested Class Summary

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

    io.papermc.paper.command.brigadier.argument.CustomArgumentType.Converted<T,N>
  • 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
  • Constructor Details

    • TokenArgumentType

      TokenArgumentType()
  • Method Details

    • parse

      public String parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<String>
      Specified by:
      parse in interface io.papermc.paper.command.brigadier.argument.CustomArgumentType<String,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<String,String>