Package 

Interface Argument

  • All Implemented Interfaces:

    
    public interface Argument<T extends Object, C extends Object>
    
                        

    Command arguments. It can be used as a child element of Usage. There is a type in the argument, type analysis is automatically performed when the client inputs, and if it cannot be parsed, the command execution is refused.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract T parse(CommandContext<CommandListenerWrapper> context, String key)
      abstract String getName() Name of argument.
      abstract ArgumentType<?> getType() Mojang Brigadier argument type.
      abstract SuggestionAction<C> getSuggestion() Lambda expression for tab completion of its arguments.
      abstract ContextAction<C> getAction() Argument context action
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait