|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.quartercode.quarterbukkit.api.command.Command
public class Command
This class represents a typed command with different components.
| Constructor Summary | |
|---|---|
Command(org.bukkit.command.CommandSender sender,
java.lang.String globalLabel,
java.lang.String label,
java.lang.String... arguments)
Creates a new command representing object. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String[] |
getArguments()
Returns the parsed arguments of the command as a String-array. |
java.lang.String |
getGlobalLabel()
Returns the global label of the command. |
java.lang.String |
getLabel()
Returns the secondary label of the command. |
org.bukkit.command.CommandSender |
getSender()
Returns the CommandSender of the command. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Command(org.bukkit.command.CommandSender sender,
java.lang.String globalLabel,
java.lang.String label,
java.lang.String... arguments)
sender - The CommandSender of the command.globalLabel - The global label of the command.label - The secondary label of the command.arguments - The parsed arguments of the command as a String-array.| Method Detail |
|---|
public org.bukkit.command.CommandSender getSender()
CommandSender of the command.
CommandSender.public java.lang.String getGlobalLabel()
public java.lang.String getLabel()
public java.lang.String[] getArguments()
String-array.
If you type in /command help 2, the array will only contains [2].
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||