Class AcceptingCommandPreprocessor<C>

java.lang.Object
cloud.commandframework.execution.preprocessor.AcceptingCommandPreprocessor<C>
Type Parameters:
C - Command sender type
All Implemented Interfaces:
CommandPreprocessor<C>, cloud.commandframework.services.types.ConsumerService<CommandPreprocessingContext<C>>, cloud.commandframework.services.types.Service<CommandPreprocessingContext<C>,​cloud.commandframework.services.State>, cloud.commandframework.services.types.SideEffectService<CommandPreprocessingContext<C>>, Consumer<CommandPreprocessingContext<C>>, Function<CommandPreprocessingContext<C>,​cloud.commandframework.services.State>

public final class AcceptingCommandPreprocessor<C> extends Object implements CommandPreprocessor<C>
CommandPreprocessor that does nothing besides indicating that the context has been properly processed
  • Nested Class Summary

    Nested classes/interfaces inherited from interface cloud.commandframework.services.types.ConsumerService

    cloud.commandframework.services.types.ConsumerService.PipeBurst
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static String
    Key used to access the context meta that indicates that the context has been fully processed
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept​(@NonNull CommandPreprocessingContext<C> context)
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.util.function.Consumer

    andThen

    Methods inherited from interface cloud.commandframework.services.types.ConsumerService

    handle

    Methods inherited from interface java.util.function.Function

    andThen, compose

    Methods inherited from interface cloud.commandframework.services.types.Service

    apply, order
  • Field Details

    • PROCESSED_INDICATOR_KEY

      public static final String PROCESSED_INDICATOR_KEY
      Key used to access the context meta that indicates that the context has been fully processed
      See Also:
      Constant Field Values
  • Constructor Details

    • AcceptingCommandPreprocessor

      public AcceptingCommandPreprocessor()
  • Method Details

    • accept

      public void accept(@NonNull CommandPreprocessingContext<C> context)
      Specified by:
      accept in interface Consumer<C>
      Specified by:
      accept in interface cloud.commandframework.services.types.ConsumerService<C>