Class CooldownBuilderModifier<C>

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

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

    • of

      public static <C> @NonNull org.incendo.cloud.annotations.BuilderModifier<Cooldown,C> of()
      Creates a new builder modifier that will add the cooldown metadata 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 cooldown 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 Cooldown annotation, @NonNull Command.Builder<C> builder)
      Specified by:
      modifyBuilder in interface org.incendo.cloud.annotations.BuilderModifier<Cooldown,C>