Class Commands


  • public class Commands
    extends java.lang.Object
    Parses and executes client-side commands.
    • Constructor Summary

      Constructors 
      Constructor Description
      Commands()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCommand​(@NotNull Command command)
      Adds an executable Command.
      @Nullable Command findCommand​(@NotNull java.lang.String commandName)
      Returns a Command by name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Commands

        public Commands()
    • Method Detail

      • addCommand

        public void addCommand​(@NotNull
                               @NotNull Command command)
        Adds an executable Command.
        Parameters:
        command - the command to add
      • findCommand

        @Nullable
        public @Nullable Command findCommand​(@NotNull
                                             @NotNull java.lang.String commandName)
        Returns a Command by name.
        Parameters:
        commandName - the command name to search
        Returns:
        the command or null if commandName is undefined