Class ConfirmationBuilderModifier<C>

java.lang.Object
org.incendo.cloud.processors.confirmation.annotation.ConfirmationBuilderModifier<C>
Type Parameters:
C - command sender type
All Implemented Interfaces:
org.incendo.cloud.annotations.BuilderModifier<Confirmation,C>

@API(status=STABLE, since="1.0.0") public final class ConfirmationBuilderModifier<C> extends Object implements org.incendo.cloud.annotations.BuilderModifier<Confirmation,C>
Builder modifier that will add the ConfirmationManager.META_CONFIRMATION_REQUIRED meta value to the command builder.
Since:
1.0.0
  • Method Details

    • of

      public static <C> @NonNull org.incendo.cloud.annotations.BuilderModifier<Confirmation,C> of()
      Creates a new builder modifier that will add the ConfirmationManager.META_CONFIRMATION_REQUIRED meta value to the command builder.
      Type Parameters:
      C - command sender type
      Returns:
      the builder modifier
    • install

      public static <C> void install(@NonNull org.incendo.cloud.annotations.AnnotationParser<C> annotationParser)
      Adds the confirmation builder modifier to the given annotationParser.
      Type Parameters:
      C - command sender type
      Parameters:
      annotationParser - annotation parser to add the builder modifier to
    • modifyBuilder

      public @NonNull Command.Builder<? extends C> modifyBuilder(@NonNull Confirmation annotation, @NonNull Command.Builder<C> builder)
      Specified by:
      modifyBuilder in interface org.incendo.cloud.annotations.BuilderModifier<Confirmation,C>