Class EnumArgumentType<T extends Enum<T>>

java.lang.Object
com.soulfiremc.server.command.brigadier.EnumArgumentType<T>
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<T>

public final class EnumArgumentType<T extends Enum<T>> extends Object implements com.mojang.brigadier.arguments.ArgumentType<T>
  • Constructor Details

    • EnumArgumentType

      public EnumArgumentType(Class<T> type)
  • Method Details

    • parse

      public T parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<T extends Enum<T>>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<T extends Enum<T>>
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<T extends Enum<T>>