Package net.citizensnpcs.api.command
Interface CommandAnnotationProcessor
- All Known Implementing Classes:
RequirementsProcessor
public interface CommandAnnotationProcessor
-
Method Summary
Modifier and TypeMethodDescriptionClass
<? extends Annotation> void
process
(CommandSender sender, CommandContext context, Annotation instance, Object[] args)
-
Method Details
-
getAnnotationClass
Class<? extends Annotation> getAnnotationClass()- Returns:
- The
Annotation
class 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
- TheAnnotation
instanceargs
- The method arguments- Throws:
CommandException
- If an exception occurs
-