| Modifier and Type | Method and Description |
|---|---|
static Timing |
Timings.getPluginEventTiming(Class<? extends Event> event,
Listener listener,
EventExecutor executor,
Plugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
void |
Server.enablePlugin(Plugin plugin) |
| Modifier and Type | Class and Description |
|---|---|
class |
PluginCommand<T extends Plugin>
This class is used as a base for all Commands for Plugins.
|
| Modifier and Type | Method and Description |
|---|---|
Plugin |
PluginIdentifiableCommand.getPlugin() |
| Modifier and Type | Method and Description |
|---|---|
PermissionAttachment |
ConsoleCommandSender.addAttachment(Plugin plugin) |
PermissionAttachment |
ConsoleCommandSender.addAttachment(Plugin plugin,
String name) |
PermissionAttachment |
ConsoleCommandSender.addAttachment(Plugin plugin,
String name,
Boolean value) |
| Constructor and Description |
|---|
EntityProvider(Map<Plugin,EntityFactory<T>> factoryMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
BaseEntity.removeMetadata(String metadataKey,
Plugin owningPlugin) |
| Modifier and Type | Method and Description |
|---|---|
static ArrayList<RegisteredListener> |
HandlerList.getRegisteredListeners(Plugin plugin) |
void |
HandlerList.unregister(Plugin plugin) |
static void |
HandlerList.unregisterAll(Plugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
Plugin |
PluginEvent.getPlugin() |
| Constructor and Description |
|---|
PluginDisableEvent(Plugin plugin) |
PluginEnableEvent(Plugin plugin) |
PluginEvent(Plugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
Plugin[] |
QueryRegenerateEvent.getPlugins() |
| Modifier and Type | Method and Description |
|---|---|
void |
QueryRegenerateEvent.setPlugins(Plugin[] plugins) |
| Modifier and Type | Method and Description |
|---|---|
static Food |
Food.registerFood(Food food,
Plugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
void |
Level.removeMetadata(String metadataKey,
Plugin owningPlugin) |
| Modifier and Type | Field and Description |
|---|---|
protected WeakReference<Plugin> |
MetadataValue.owningPlugin |
| Modifier and Type | Method and Description |
|---|---|
Plugin |
MetadataValue.getOwningPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
MetadataStore.invalidateAll(Plugin owningPlugin) |
void |
MetadataStore.removeMetadata(Object subject,
String metadataKey,
Plugin owningPlugin) |
void |
BlockMetadataStore.removeMetadata(Object block,
String metadataKey,
Plugin owningPlugin) |
void |
Metadatable.removeMetadata(String metadataKey,
Plugin owningPlugin) |
| Constructor and Description |
|---|
MetadataValue(Plugin owningPlugin) |
| Modifier and Type | Method and Description |
|---|---|
Plugin |
PermissionAttachment.getPlugin() |
| Modifier and Type | Method and Description |
|---|---|
PermissionAttachment |
PermissibleBase.addAttachment(Plugin plugin) |
PermissionAttachment |
Permissible.addAttachment(Plugin plugin) |
PermissionAttachment |
PermissibleBase.addAttachment(Plugin plugin,
String name) |
PermissionAttachment |
Permissible.addAttachment(Plugin plugin,
String name) |
PermissionAttachment |
PermissibleBase.addAttachment(Plugin plugin,
String name,
Boolean value) |
PermissionAttachment |
Permissible.addAttachment(Plugin plugin,
String name,
Boolean value) |
| Constructor and Description |
|---|
PermissionAttachment(Plugin plugin,
Permissible permissible) |
| Modifier and Type | Method and Description |
|---|---|
PermissionAttachment |
Player.addAttachment(Plugin plugin) |
PermissionAttachment |
Player.addAttachment(Plugin plugin,
String name) |
PermissionAttachment |
Player.addAttachment(Plugin plugin,
String name,
Boolean value) |
void |
Player.removeMetadata(String metadataKey,
Plugin owningPlugin) |
void |
OfflinePlayer.removeMetadata(String metadataKey,
Plugin owningPlugin) |
| Modifier and Type | Class and Description |
|---|---|
class |
PluginBase
一般的Nukkit插件需要继承的类。
A class to be extended by a normal Nukkit plugin. |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Plugin> |
PluginManager.plugins |
| Modifier and Type | Method and Description |
|---|---|
<T extends Plugin> |
PluginBase.getCommand(String name)
TODO: FINISH JAVADOC
|
| Modifier and Type | Method and Description |
|---|---|
Plugin |
RegisteredListener.getPlugin() |
Plugin |
PluginManager.getPlugin(String name) |
Plugin |
JavaPluginLoader.loadPlugin(File file) |
Plugin |
PluginLoader.loadPlugin(File file)
通过插件的
File对象,来加载和初始化一个插件。Loads and initializes a plugin by a File object describes the file. |
Plugin |
PluginManager.loadPlugin(File file) |
Plugin |
PluginManager.loadPlugin(File file,
Map<String,PluginLoader> loaders) |
Plugin |
JavaPluginLoader.loadPlugin(String filename) |
Plugin |
PluginLoader.loadPlugin(String filename)
通过文件名字的字符串,来加载和初始化一个插件。
Loads and initializes a plugin by its file name. |
Plugin |
PluginManager.loadPlugin(String path) |
Plugin |
PluginManager.loadPlugin(String path,
Map<String,PluginLoader> loaders) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Plugin> |
PluginManager.getPlugins() |
Map<String,Plugin> |
PluginManager.loadPlugins(File dictionary) |
Map<String,Plugin> |
PluginManager.loadPlugins(File dictionary,
List<String> newLoaders) |
Map<String,Plugin> |
PluginManager.loadPlugins(File dictionary,
List<String> newLoaders,
boolean includeDir) |
Map<String,Plugin> |
PluginManager.loadPlugins(String dictionary) |
Map<String,Plugin> |
PluginManager.loadPlugins(String dictionary,
List<String> newLoaders) |
| Modifier and Type | Method and Description |
|---|---|
void |
JavaPluginLoader.disablePlugin(Plugin plugin) |
void |
PluginLoader.disablePlugin(Plugin plugin)
停用一个插件。
Disables a plugin. |
void |
PluginManager.disablePlugin(Plugin plugin) |
void |
JavaPluginLoader.enablePlugin(Plugin plugin) |
void |
PluginLoader.enablePlugin(Plugin plugin)
启用一个插件。
Enables a plugin. |
void |
PluginManager.enablePlugin(Plugin plugin) |
boolean |
PluginManager.isPluginEnabled(Plugin plugin) |
protected void |
PluginManager.parseYamlCommands(Plugin plugin) |
void |
PluginManager.registerEvent(Class<? extends Event> event,
Listener listener,
EventPriority priority,
EventExecutor executor,
Plugin plugin) |
void |
PluginManager.registerEvent(Class<? extends Event> event,
Listener listener,
EventPriority priority,
EventExecutor executor,
Plugin plugin,
boolean ignoreCancelled) |
void |
PluginManager.registerEvents(Listener listener,
Plugin plugin) |
| Constructor and Description |
|---|
PluginLogger(Plugin context) |
RegisteredListener(Listener listener,
EventExecutor executor,
EventPriority priority,
Plugin plugin,
boolean ignoreCancelled,
Timing timing) |
| Modifier and Type | Method and Description |
|---|---|
Plugin |
RegisteredServiceProvider.getPlugin()
Return the plugin provide this service.
|
| Modifier and Type | Method and Description |
|---|---|
List<RegisteredServiceProvider<?>> |
NKServiceManager.cancel(Plugin plugin) |
List<RegisteredServiceProvider<?>> |
ServiceManager.cancel(Plugin plugin)
Cancel service's provider(s) offered this plugin.
|
List<RegisteredServiceProvider<?>> |
NKServiceManager.getRegistrations(Plugin plugin) |
List<RegisteredServiceProvider<?>> |
ServiceManager.getRegistrations(Plugin plugin) |
protected <T> boolean |
NKServiceManager.provide(Class<T> service,
T instance,
Plugin plugin,
ServicePriority priority) |
<T> boolean |
NKServiceManager.register(Class<T> service,
T provider,
Plugin plugin,
ServicePriority priority) |
<T> boolean |
ServiceManager.register(Class<T> service,
T provider,
Plugin plugin,
ServicePriority priority)
Register an object as a service's provider.
|
| Modifier and Type | Method and Description |
|---|---|
Plugin |
RegistryProvider.getPlugin() |
| Modifier and Type | Method and Description |
|---|---|
<T extends BlockEntity> |
BlockEntityRegistry.newEntity(BlockEntityType<T> type,
Plugin plugin,
Chunk chunk,
com.nukkitx.math.vector.Vector3i position)
Creates new entity of given type from specific plugin factory
|
<T extends Entity> |
EntityRegistry.newEntity(EntityType<T> type,
Plugin plugin,
Location location)
Creates new entity of given type from specific plugin factory
|
<T extends BlockEntity> |
BlockEntityRegistry.register(Plugin plugin,
BlockEntityType<T> type,
BlockEntityFactory<T> factory,
int priority) |
void |
CommandRegistry.register(Plugin plugin,
Command command)
Method used to register a custom command.
|
<T extends Entity> |
EntityRegistry.register(Plugin plugin,
EntityType<T> type,
EntityFactory<T> factory,
int priority,
boolean hasSpawnEgg) |
void |
CommandRegistry.registerSimpleCommand(Plugin plugin,
Object simpleCommand)
Used to register
SimpleCommands created using the annotations found in cn.nukkit.command.simple
package. |
void |
CommandRegistry.unregister(Plugin plugin,
String name)
Method used to unregister a command.
|
void |
CommandRegistry.unregisterAlias(Plugin plugin,
String alias)
Unregisters an alias for one of your Plugin's
Commands, or for a
built-in command. |
| Modifier and Type | Class and Description |
|---|---|
class |
PluginTask<T extends Plugin>
插件创建的任务。
Task that created by a plugin. |
| Modifier and Type | Field and Description |
|---|---|
protected T |
PluginTask.owner |
| Modifier and Type | Method and Description |
|---|---|
Plugin |
TaskHandler.getPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
ServerScheduler.cancelTask(Plugin plugin) |
Runnable |
NukkitRunnable.runTask(Plugin plugin) |
Runnable |
NukkitRunnable.runTaskAsynchronously(Plugin plugin) |
Runnable |
NukkitRunnable.runTaskLater(Plugin plugin,
int delay) |
Runnable |
NukkitRunnable.runTaskLaterAsynchronously(Plugin plugin,
int delay) |
Runnable |
NukkitRunnable.runTaskTimer(Plugin plugin,
int delay,
int period) |
Runnable |
NukkitRunnable.runTaskTimerAsynchronously(Plugin plugin,
int delay,
int period) |
TaskHandler |
ServerScheduler.scheduleAsyncTask(Plugin plugin,
AsyncTask task) |
TaskHandler |
ServerScheduler.scheduleDelayedRepeatingTask(Plugin plugin,
Runnable task,
int delay,
int period) |
TaskHandler |
ServerScheduler.scheduleDelayedRepeatingTask(Plugin plugin,
Runnable task,
int delay,
int period,
boolean asynchronous) |
TaskHandler |
ServerScheduler.scheduleDelayedTask(Plugin plugin,
Runnable task,
int delay) |
TaskHandler |
ServerScheduler.scheduleDelayedTask(Plugin plugin,
Runnable task,
int delay,
boolean asynchronous) |
TaskHandler |
ServerScheduler.scheduleRepeatingTask(Plugin plugin,
Runnable task,
int period) |
TaskHandler |
ServerScheduler.scheduleRepeatingTask(Plugin plugin,
Runnable task,
int period,
boolean asynchronous) |
TaskHandler |
ServerScheduler.scheduleTask(Plugin plugin,
Runnable task) |
TaskHandler |
ServerScheduler.scheduleTask(Plugin plugin,
Runnable task,
boolean asynchronous) |
| Constructor and Description |
|---|
TaskHandler(Plugin plugin,
Runnable task,
int taskId,
boolean asynchronous) |
| Constructor and Description |
|---|
SimpleConfig(Plugin plugin) |
SimpleConfig(Plugin plugin,
String fileName) |
Copyright © 2020. All rights reserved.