Class StringArgumentType<T>

java.lang.Object
de.kentoj.kencommandapi.api.argument.types.StringArgumentType<T>
All Implemented Interfaces:
ArgumentType<T,String>

public class StringArgumentType<T> extends Object implements ArgumentType<T,String>
  • Constructor Details

    • StringArgumentType

      public StringArgumentType()
  • Method Details

    • parseInput

      public String parseInput(String string)
      Specified by:
      parseInput in interface ArgumentType<T,String>
    • defaultSuggestionProvider

      public SuggestionProvider<T> defaultSuggestionProvider()
      Specified by:
      defaultSuggestionProvider in interface ArgumentType<T,String>
    • isGreedy

      public boolean isGreedy()
      Specified by:
      isGreedy in interface ArgumentType<T,String>
      Returns:
      whether this argument is greedy. Greedy arguments consume all remaining input instead of a single word. For example, given the 2 words "hello" "world" as input, a greedy argument parses "hello world" as a single value. Greedy arguments may not be followed by another argument or a literal