Class CommandPreprocessingContext<C>

java.lang.Object
cloud.commandframework.execution.preprocessor.CommandPreprocessingContext<C>
Type Parameters:
C - Command sender type

public final class CommandPreprocessingContext<C> extends Object
  • Constructor Details

    • CommandPreprocessingContext

      public CommandPreprocessingContext(@NonNull CommandContext<C> commandContext, @NonNull LinkedList<@NonNull String> inputQueue)
      Construct a new command preprocessing context
      Parameters:
      commandContext - Command context
      inputQueue - Command input as supplied by sender
  • Method Details

    • getCommandContext

      public @NonNull CommandContext<C> getCommandContext()
      Get the command context
      Returns:
      Command context
    • getInputQueue

      public @NonNull LinkedList<@NonNull String> getInputQueue()
      Get the original input queue. All changes will persist and will be used during parsing
      Returns:
      Input queue
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object