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 Summary
Modifier and TypeMethodDescriptionstatic <C> voidAdds the cooldown builder modifier to the givenannotationParser.@NonNull Command.Builder<? extends C>modifyBuilder(@NonNull Cooldown annotation, @NonNull Command.Builder<C> builder) of()Creates a new builder modifier that will add the cooldown metadata to the command builder.
-
Method Details
-
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 givenannotationParser.- 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)
-