Package co.aikar.commands
Class CommandOperationContext<I extends CommandIssuer>
- java.lang.Object
-
- co.aikar.commands.CommandOperationContext<I>
-
public class CommandOperationContext<I extends CommandIssuer> extends Object
Holds information about the currently executing command on this thread
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T extends Annotation>
TgetAnnotation(Class<T> anno)Deprecated.<T extends Annotation>
StringgetAnnotationValue(Class<T> cls)<T extends Annotation>
StringgetAnnotationValue(Class<T> cls, int options)String[]getArgs()BaseCommandgetCommand()IgetCommandIssuer()StringgetCommandLabel()CommandManagergetCommandManager()RegisteredCommandgetRegisteredCommand()booleanhasAnnotation(Class<? extends Annotation> anno)booleanisAsync()voidsetRegisteredCommand(RegisteredCommand registeredCommand)
-
-
-
Method Detail
-
getCommandManager
public CommandManager getCommandManager()
-
getCommandIssuer
public I getCommandIssuer()
-
getCommand
public BaseCommand getCommand()
-
getCommandLabel
public String getCommandLabel()
-
isAsync
public boolean isAsync()
-
setRegisteredCommand
public void setRegisteredCommand(RegisteredCommand registeredCommand)
-
getRegisteredCommand
public RegisteredCommand getRegisteredCommand()
-
getAnnotation
@Deprecated public <T extends Annotation> T getAnnotation(Class<T> anno)
Deprecated.This method will not support annotation processors!! use getAnnotationValue or hasAnnotation
-
getAnnotationValue
public <T extends Annotation> String getAnnotationValue(Class<T> cls)
-
getAnnotationValue
public <T extends Annotation> String getAnnotationValue(Class<T> cls, int options)
-
hasAnnotation
public boolean hasAnnotation(Class<? extends Annotation> anno)
-
-