feat: add bukkit class type

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-09-12 17:54:17 +08:00
parent cbe87cc378
commit 2bf239d8ea
959 changed files with 36124 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
declare namespace org {
namespace bukkit {
namespace command {
class PluginCommand {
constructor(name: string, owner: org.bukkit.plugin.Plugin)
/**
* Executes the command, returning its success
*/
public execute(sender: org.bukkit.command.CommandSender, commandLabel: string, args: string): boolean;
/**
* Sets the {@link CommandExecutor} to run when parsing this command
*/
public setExecutor(executor: org.bukkit.command.CommandExecutor): void;
/**
* Gets the {@link CommandExecutor} associated with this command
*/
public getExecutor(): org.bukkit.command.CommandExecutor;
/**
* Sets the {@link TabCompleter} to run when tab-completing this command.
* <p>
* If no TabCompleter is specified, and the command's executor implements
* TabCompleter, then the executor will be used for tab completion.
*/
public setTabCompleter(completer: org.bukkit.command.TabCompleter): void;
/**
* Gets the {@link TabCompleter} associated with this command.
*/
public getTabCompleter(): org.bukkit.command.TabCompleter;
/**
* Gets the owner of this PluginCommand
*/
public getPlugin(): org.bukkit.plugin.Plugin;
/**
* {@inheritDoc}
* <p>
* Delegates to the tab completer if present.
* <p>
* If it is not present or returns null, will delegate to the current
* command executor if it implements {@link TabCompleter}. If a non-null
* list has not been found, will default to standard player name
* completion in {@link
* Command#tabComplete(CommandSender, String, String[])}.
* <p>
* This method does not consider permissions.
*/
public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): any[] /*java.util.List*/;
public toString(): string;
}
}
}
}