Class AddressArgumentType

java.lang.Object
dev.booky.cloudcore.commands.AddressArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<InetAddress>, io.papermc.paper.command.brigadier.argument.CustomArgumentType<InetAddress,String>, io.papermc.paper.command.brigadier.argument.CustomArgumentType.Converted<InetAddress,String>

public final class AddressArgumentType extends Object implements io.papermc.paper.command.brigadier.argument.CustomArgumentType.Converted<InetAddress,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>
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.mojang.brigadier.arguments.ArgumentType<InetAddress>
     
    convert(String nativeType)
     
    com.mojang.brigadier.arguments.ArgumentType<String>
     

    Methods inherited from class java.lang.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

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

    parse
  • Method Details

    • address

      public static com.mojang.brigadier.arguments.ArgumentType<InetAddress> address()
    • convert

      public InetAddress convert(String nativeType) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      convert in interface io.papermc.paper.command.brigadier.argument.CustomArgumentType.Converted<InetAddress,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<InetAddress,String>