Class TribeArgument

java.lang.Object
org.woftnw.eof.command.argument.TribeArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Tribe>, io.papermc.paper.command.brigadier.argument.CustomArgumentType<Tribe,String>, io.papermc.paper.command.brigadier.argument.CustomArgumentType.Converted<Tribe,String>

public class TribeArgument extends Object implements io.papermc.paper.command.brigadier.argument.CustomArgumentType.Converted<Tribe,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
    @NonNull Tribe
    convert(@NonNull String nativeType)
     
    @NonNull com.mojang.brigadier.arguments.ArgumentType<String>
     
    <S> @NonNull CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
    listSuggestions(@NonNull com.mojang.brigadier.context.CommandContext<S> context, @NonNull com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
     

    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

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

    convert, parse, parse
  • Constructor Details

  • Method Details

    • convert

      public @NonNull Tribe convert(@NonNull String nativeType) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      convert in interface io.papermc.paper.command.brigadier.argument.CustomArgumentType.Converted<Tribe,String>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • listSuggestions

      public <S> @NonNull CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(@NonNull com.mojang.brigadier.context.CommandContext<S> context, @NonNull com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<Tribe>
      Specified by:
      listSuggestions in interface io.papermc.paper.command.brigadier.argument.CustomArgumentType<Tribe,String>
    • getNativeType

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