Class PaperCommandFactory
- java.lang.Object
- 
- com.github.siroshun09.mccommand.paper.PaperCommandFactory
 
- 
 public final class PaperCommandFactory extends Object 
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidregister(@NotNull PluginCommand target, @NotNull Command command)Registers the command.static voidregisterAsync(@NotNull PluginCommand target, @NotNull Command command)Registers the command.static voidregisterAsync(@NotNull PluginCommand target, @NotNull Command command, @NotNull Executor executor)Registers the command.static voidregisterAsyncIfExists(@NotNull JavaPlugin sourcePlugin, @NotNull Command command)Searches forPluginCommandthat is named asCommand.getName()and register the command if it exists.static voidregisterAsyncIfExists(@NotNull JavaPlugin sourcePlugin, @NotNull Command command, @NotNull Executor executor)Searches forPluginCommandthat is named asCommand.getName()and register the command if it exists.static voidregisterIfExists(@NotNull JavaPlugin sourcePlugin, @NotNull Command command)Searches forPluginCommandthat is named asCommand.getName()and register the command if it exists.
 
- 
- 
- 
Method Detail- 
registerpublic static void register(@NotNull @NotNull PluginCommand target, @NotNull @NotNull Command command) Registers the command.- Parameters:
- target- the- PluginCommand
- command- the command to register
 
 - 
registerIfExistspublic static void registerIfExists(@NotNull @NotNull JavaPlugin sourcePlugin, @NotNull @NotNull Command command) Searches forPluginCommandthat is named asCommand.getName()and register the command if it exists.- Parameters:
- sourcePlugin- the plugin to search for the command
- command- the command to register
 
 - 
registerAsyncpublic static void registerAsync(@NotNull @NotNull PluginCommand target, @NotNull @NotNull Command command) Registers the command.If you register a command with this method, it will be executed asynchronously. Note: The tab completion will execute on main thread. If you want the tab completion to be executed asynchronously, use AsyncTabCompleteListener.register(Plugin, Command).- Parameters:
- target- the- PluginCommand
- command- the command to register
 
 - 
registerAsyncIfExistspublic static void registerAsyncIfExists(@NotNull @NotNull JavaPlugin sourcePlugin, @NotNull @NotNull Command command) Searches forPluginCommandthat is named asCommand.getName()and register the command if it exists.- Parameters:
- sourcePlugin- the plugin to search for the command
- command- the command to register
- See Also:
- registerAsync(PluginCommand, Command)
 
 - 
registerAsyncpublic static void registerAsync(@NotNull @NotNull PluginCommand target, @NotNull @NotNull Command command, @NotNull @NotNull Executor executor) Registers the command.If you register a command with this method, it will be executed asynchronously. Note: The tab completion will execute on main thread. If you want the tab completion to be executed asynchronously, use AsyncTabCompleteListener.register(Plugin, Command).- Parameters:
- target- the- PluginCommand
- command- the command to register
- executor- the executor to run command
 
 - 
registerAsyncIfExistspublic static void registerAsyncIfExists(@NotNull @NotNull JavaPlugin sourcePlugin, @NotNull @NotNull Command command, @NotNull @NotNull Executor executor) Searches forPluginCommandthat is named asCommand.getName()and register the command if it exists.- Parameters:
- sourcePlugin- the plugin to search for the command
- command- the command to register
- executor- the executor to run command
- See Also:
- registerAsync(PluginCommand, Command)
 
 
- 
 
-