Package net.citizensnpcs.api.command
Interface CommandAnnotationProcessor
- All Known Implementing Classes:
RequirementsProcessor
public interface CommandAnnotationProcessor
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation> voidprocess(CommandSender sender, CommandContext context, Annotation instance, Object[] args)
-
Method Details
-
getAnnotationClass
Class<? extends Annotation> getAnnotationClass()- Returns:
- The
Annotationclass that this processor will accept.
-
process
void process(CommandSender sender, CommandContext context, Annotation instance, Object[] args) throws CommandException - Parameters:
sender- The command sendercontext- The context of the command, including argumentsinstance- TheAnnotationinstanceargs- The method arguments- Throws:
CommandException- If an exception occurs
-