Class CommandGroupBase

    • Method Detail

      • clearGroupedCommands

        public static void clearGroupedCommands()
        Clears the list of grouped commands, allowing all commands to be freely used again.

        WARNING: Using this haphazardly can result in unexpected/undesirable behavior. Do not use this unless you fully understand what you are doing.

      • clearGroupedCommand

        public static void clearGroupedCommand​(Command command)
        Removes a single command from the list of grouped commands, allowing it to be freely used again.

        WARNING: Using this haphazardly can result in unexpected/undesirable behavior. Do not use this unless you fully understand what you are doing.

        Parameters:
        command - the command to remove from the list of grouped commands
      • requireUngrouped

        public static void requireUngrouped​(Command... commands)
        Requires that the specified commands not have been already allocated to a CommandGroup. Throws an IllegalArgumentException if commands have been allocated.
        Parameters:
        commands - The commands to check
      • requireUngrouped

        public static void requireUngrouped​(Collection<Command> commands)
        Requires that the specified commands not have been already allocated to a CommandGroup. Throws an IllegalArgumentException if commands have been allocated.
        Parameters:
        commands - The commands to check
      • addCommands

        public abstract void addCommands​(Command... commands)
        Adds the given commands to the command group.
        Parameters:
        commands - The commands to add.