Package | Description |
---|---|
co.aikar.timings | |
com.destroystokyo.paper | |
com.destroystokyo.paper.exception | |
org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
org.bukkit.command |
Classes relating to handling specialized non-chat player input.
|
org.bukkit.conversations |
Classes dedicated to facilitate direct player-to-plugin communication.
|
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.event |
Classes dedicated to handling triggered code executions.
|
org.bukkit.event.server |
Events relating to programmatic state
changes on the server. |
org.bukkit.metadata |
Classes dedicated to providing a layer of plugin specified data on various
Minecraft concepts.
|
org.bukkit.permissions |
Classes dedicated to providing binary state properties to players.
|
org.bukkit.plugin |
Classes specifically relating to loading software modules at runtime.
|
org.bukkit.plugin.java |
Classes for handling
plugins written in
java. |
org.bukkit.plugin.messaging |
Classes dedicated to specialized plugin to client protocols.
|
org.bukkit.scheduler |
Classes dedicated to letting
plugins run
code at specific time intervals, including thread safety. |
Modifier and Type | Method and Description |
---|---|
static @Nullable Plugin |
TimingsManager.getPluginByClassloader(@Nullable Class<?> clazz)
Looks up the class loader for the specified class, and if it is a PluginClassLoader, return the
Plugin that created this class.
|
Modifier and Type | Method and Description |
---|---|
static @NotNull Timing |
Timings.of(@NotNull Plugin plugin,
@NotNull String name)
Returns a Timing for a plugin corresponding to a name.
|
static @NotNull Timing |
Timings.of(@NotNull Plugin plugin,
@NotNull String name,
@Nullable Timing groupHandler)
Returns a handler that has a groupHandler timer handler.
|
static @NotNull Timing |
Timings.ofStart(@NotNull Plugin plugin,
@NotNull String name)
Returns a Timing object after starting it, useful for Java7 try-with-resources.
|
static @NotNull Timing |
Timings.ofStart(@NotNull Plugin plugin,
@NotNull String name,
@Nullable Timing groupHandler)
Returns a Timing object after starting it, useful for Java7 try-with-resources.
|
Constructor and Description |
---|
TimedEventExecutor(@NotNull EventExecutor executor,
@NotNull Plugin plugin,
@Nullable Method method,
@NotNull Class<? extends Event> eventClass)
Wraps an event executor and associates a timing handler to it.
|
Constructor and Description |
---|
NamespacedTag(@NotNull Plugin plugin,
@NotNull String key)
Create a key in the plugin's namespace.
|
Modifier and Type | Method and Description |
---|---|
Plugin |
ServerPluginException.getResponsiblePlugin()
Gets the plugin which is directly responsible for the exception being thrown
|
Constructor and Description |
---|
ServerEventException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace,
Plugin responsiblePlugin,
Listener listener,
Event event) |
ServerEventException(String message,
Throwable cause,
Plugin responsiblePlugin,
Listener listener,
Event event) |
ServerEventException(Throwable cause,
Plugin responsiblePlugin,
Listener listener,
Event event) |
ServerPluginEnableDisableException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace,
Plugin responsiblePlugin) |
ServerPluginEnableDisableException(String message,
Throwable cause,
Plugin responsiblePlugin) |
ServerPluginEnableDisableException(Throwable cause,
Plugin responsiblePlugin) |
ServerPluginException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace,
Plugin responsiblePlugin) |
ServerPluginException(String message,
Throwable cause,
Plugin responsiblePlugin) |
ServerPluginException(Throwable cause,
Plugin responsiblePlugin) |
ServerPluginMessageException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace,
Plugin responsiblePlugin,
Player player,
String channel,
byte[] data) |
ServerPluginMessageException(String message,
Throwable cause,
Plugin responsiblePlugin,
Player player,
String channel,
byte[] data) |
ServerPluginMessageException(Throwable cause,
Plugin responsiblePlugin,
Player player,
String channel,
byte[] data) |
Modifier and Type | Method and Description |
---|---|
boolean |
World.addPluginChunkTicket(int x,
int z,
@NotNull Plugin plugin)
Adds a plugin ticket for the specified chunk, loading the chunk if it is
not already loaded.
|
boolean |
Chunk.addPluginChunkTicket(@NotNull Plugin plugin)
Adds a plugin ticket for this chunk, loading this chunk if it is not
already loaded.
|
static @Nullable NamespacedKey |
NamespacedKey.fromString(@NotNull String string,
@Nullable Plugin defaultNamespace)
Get a NamespacedKey from the supplied string with a default namespace if
a namespace is not defined.
|
static boolean |
UnsafeValues.isLegacyPlugin(Plugin plugin)
Deprecated.
|
boolean |
World.removePluginChunkTicket(int x,
int z,
@NotNull Plugin plugin)
Removes the specified plugin's ticket for the specified chunk
|
boolean |
Chunk.removePluginChunkTicket(@NotNull Plugin plugin)
Removes the specified plugin's ticket for this chunk
|
void |
World.removePluginChunkTickets(@NotNull Plugin plugin)
Removes all plugin tickets for the specified plugin
|
Constructor and Description |
---|
NamespacedKey(@NotNull Plugin plugin,
@NotNull String key)
Create a key in the plugin's namespace.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Plugin |
PluginIdentifiableCommand.getPlugin()
Gets the owner of this PluginIdentifiableCommand.
|
@NotNull Plugin |
PluginCommand.getPlugin()
Gets the owner of this PluginCommand
|
Modifier and Type | Method and Description |
---|---|
default @NotNull PermissionAttachment |
MessageCommandSender.addAttachment(@NotNull Plugin plugin) |
default @NotNull PermissionAttachment |
MessageCommandSender.addAttachment(@NotNull Plugin plugin,
int ticks) |
default @NotNull PermissionAttachment |
MessageCommandSender.addAttachment(@NotNull Plugin plugin,
@NotNull String name,
boolean value) |
default @NotNull PermissionAttachment |
MessageCommandSender.addAttachment(@NotNull Plugin plugin,
@NotNull String name,
boolean value,
int ticks) |
static @NotNull List<Command> |
PluginCommandYamlParser.parse(@NotNull Plugin plugin) |
Constructor and Description |
---|
PluginCommand(@NotNull String name,
@NotNull Plugin owner) |
Modifier and Type | Field and Description |
---|---|
protected Plugin |
InactivityConversationCanceller.plugin |
protected Plugin |
ConversationFactory.plugin |
protected Plugin |
PluginNameConversationPrefix.plugin |
Modifier and Type | Method and Description |
---|---|
@Nullable Plugin |
ConversationContext.getPlugin()
Gets the plugin that owns this conversation.
|
Constructor and Description |
---|
Conversation(@Nullable Plugin plugin,
@NotNull Conversable forWhom,
@Nullable Prompt firstPrompt)
Initializes a new Conversation.
|
Conversation(@Nullable Plugin plugin,
@NotNull Conversable forWhom,
@Nullable Prompt firstPrompt,
@NotNull Map<Object,Object> initialSessionData)
Initializes a new Conversation.
|
ConversationContext(@Nullable Plugin plugin,
@NotNull Conversable forWhom,
@NotNull Map<Object,Object> initialSessionData) |
ConversationFactory(@NotNull Plugin plugin)
Constructs a ConversationFactory.
|
InactivityConversationCanceller(@NotNull Plugin plugin,
int timeoutSeconds)
Creates an InactivityConversationCanceller.
|
PlayerNamePrompt(@NotNull Plugin plugin) |
PluginNameConversationPrefix(@NotNull Plugin plugin) |
PluginNameConversationPrefix(@NotNull Plugin plugin,
@NotNull String separator,
@NotNull ChatColor prefixColor) |
Modifier and Type | Method and Description |
---|---|
void |
Player.hidePlayer(@NotNull Plugin plugin,
@NotNull Player player)
Hides a player from this player
|
void |
Player.showPlayer(@NotNull Plugin plugin,
@NotNull Player player)
Allows this player to see a player that was previously hidden.
|
Modifier and Type | Method and Description |
---|---|
static @NotNull ArrayList<RegisteredListener> |
HandlerList.getRegisteredListeners(@NotNull Plugin plugin)
Get a specific plugin's registered listeners associated with this
handler list
|
void |
HandlerList.unregister(@NotNull Plugin plugin)
Remove a specific plugin's listeners from this handler
|
static void |
HandlerList.unregisterAll(@NotNull Plugin plugin)
Unregister a specific plugin's listeners from all handler lists.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Plugin |
PluginEvent.getPlugin()
Gets the plugin involved in this event
|
Constructor and Description |
---|
PluginDisableEvent(@NotNull Plugin plugin) |
PluginEnableEvent(@NotNull Plugin plugin) |
PluginEvent(@NotNull Plugin plugin) |
Modifier and Type | Field and Description |
---|---|
protected WeakReference<Plugin> |
MetadataValueAdapter.owningPlugin |
Modifier and Type | Method and Description |
---|---|
@Nullable Plugin |
MetadataValueAdapter.getOwningPlugin() |
@Nullable Plugin |
MetadataValue.getOwningPlugin()
Returns the
Plugin that created this metadata item. |
Modifier and Type | Method and Description |
---|---|
void |
MetadataStoreBase.invalidateAll(@NotNull Plugin owningPlugin)
Invalidates all metadata in the metadata store that originates from the
given plugin.
|
void |
MetadataStore.invalidateAll(@NotNull Plugin owningPlugin)
Invalidates all metadata in the metadata store that originates from the
given plugin.
|
void |
MetadataStoreBase.removeAll(@NotNull Plugin owningPlugin)
Removes all metadata in the metadata store that originates from the
given plugin.
|
void |
Metadatable.removeMetadata(@NotNull String metadataKey,
@NotNull Plugin owningPlugin)
Removes the given metadata value from the implementing object's
metadata store.
|
void |
MetadataStoreBase.removeMetadata(T subject,
@NotNull String metadataKey,
@NotNull Plugin owningPlugin)
Removes a metadata item owned by a plugin from a subject.
|
void |
MetadataStore.removeMetadata(T subject,
@NotNull String metadataKey,
@NotNull Plugin owningPlugin)
Removes a metadata item owned by a plugin from a subject.
|
Constructor and Description |
---|
FixedMetadataValue(@NotNull Plugin owningPlugin,
@Nullable Object value)
Initializes a FixedMetadataValue with an Object
|
LazyMetadataValue(@NotNull Plugin owningPlugin)
Protected special constructor used by FixedMetadataValue to bypass
standard setup.
|
LazyMetadataValue(@NotNull Plugin owningPlugin,
@NotNull Callable<Object> lazyValue)
Initialized a LazyMetadataValue object with the default
CACHE_AFTER_FIRST_EVAL cache strategy.
|
LazyMetadataValue(@NotNull Plugin owningPlugin,
@NotNull LazyMetadataValue.CacheStrategy cacheStrategy,
@NotNull Callable<Object> lazyValue)
Initializes a LazyMetadataValue object with a specific cache strategy.
|
MetadataValueAdapter(@NotNull Plugin owningPlugin) |
Modifier and Type | Method and Description |
---|---|
@NotNull Plugin |
PermissionAttachment.getPlugin()
Gets the plugin responsible for this attachment
|
Modifier and Type | Method and Description |
---|---|
@NotNull PermissionAttachment |
PermissibleBase.addAttachment(@NotNull Plugin plugin) |
@NotNull PermissionAttachment |
Permissible.addAttachment(@NotNull Plugin plugin)
Adds a new empty
PermissionAttachment to this object |
@Nullable PermissionAttachment |
PermissibleBase.addAttachment(@NotNull Plugin plugin,
int ticks) |
@Nullable PermissionAttachment |
Permissible.addAttachment(@NotNull Plugin plugin,
int ticks)
Temporarily adds a new empty
PermissionAttachment to this
object |
@NotNull PermissionAttachment |
PermissibleBase.addAttachment(@NotNull Plugin plugin,
@NotNull String name,
boolean value) |
@NotNull PermissionAttachment |
Permissible.addAttachment(@NotNull Plugin plugin,
@NotNull String name,
boolean value)
Adds a new
PermissionAttachment with a single permission by
name and value |
@Nullable PermissionAttachment |
PermissibleBase.addAttachment(@NotNull Plugin plugin,
@NotNull String name,
boolean value,
int ticks) |
@Nullable PermissionAttachment |
Permissible.addAttachment(@NotNull Plugin plugin,
@NotNull String name,
boolean value,
int ticks)
Temporarily adds a new
PermissionAttachment with a single
permission by name and value |
Constructor and Description |
---|
PermissionAttachment(@NotNull Plugin plugin,
@NotNull Permissible permissible) |
Modifier and Type | Class and Description |
---|---|
class |
PluginBase
Represents a base
Plugin |
Modifier and Type | Method and Description |
---|---|
@NotNull Plugin |
RegisteredListener.getPlugin()
Gets the plugin for this registration
|
@NotNull Plugin |
RegisteredServiceProvider.getPlugin() |
@Nullable Plugin |
SimplePluginManager.getPlugin(@NotNull String name)
Checks if the given plugin is loaded and returns it when applicable
|
@Nullable Plugin |
PluginManager.getPlugin(@NotNull String name)
Checks if the given plugin is loaded and returns it when applicable
|
@NotNull Plugin[] |
SimplePluginManager.getPlugins() |
@NotNull Plugin[] |
PluginManager.getPlugins()
Gets a list of all currently loaded plugins
|
@Nullable Plugin |
SimplePluginManager.loadPlugin(@NotNull File file)
Loads the plugin in the specified file
|
@Nullable Plugin |
PluginManager.loadPlugin(@NotNull File file)
Loads the plugin in the specified file
|
@NotNull Plugin |
PluginLoader.loadPlugin(@NotNull File file)
Loads the plugin contained in the specified file
|
@NotNull Plugin[] |
SimplePluginManager.loadPlugins(@NotNull File directory)
Loads the plugins contained within the specified directory
|
@NotNull Plugin[] |
PluginManager.loadPlugins(@NotNull File directory)
Loads the plugins contained within the specified directory
|
@NotNull Plugin[] |
SimplePluginManager.loadPlugins(@NotNull File directory,
@NotNull List<File> extraPluginJars) |
@NotNull Plugin[] |
PluginManager.loadPlugins(@NotNull File directory,
@NotNull List<File> extraPluginJars)
Loads multiple plugins from a folder
|
Modifier and Type | Method and Description |
---|---|
@NotNull Map<Class<? extends Event>,Set<RegisteredListener>> |
PluginLoader.createRegisteredListeners(@NotNull Listener listener,
@NotNull Plugin plugin)
Creates and returns registered listeners for the event classes used in
this listener
|
void |
SimplePluginManager.disablePlugin(@NotNull Plugin plugin) |
void |
PluginManager.disablePlugin(@NotNull Plugin plugin)
Disables the specified plugin
|
void |
PluginLoader.disablePlugin(@NotNull Plugin plugin)
Disables the specified plugin
|
void |
SimplePluginManager.disablePlugin(@NotNull Plugin plugin,
boolean closeClassloader) |
void |
PluginManager.disablePlugin(@NotNull Plugin plugin,
boolean closeClassloader)
Disables the specified plugin
|
default void |
PluginLoader.disablePlugin(@NotNull Plugin plugin,
boolean closeClassloader)
Disables the specified plugin
|
void |
SimplePluginManager.enablePlugin(@NotNull Plugin plugin) |
void |
PluginManager.enablePlugin(@NotNull Plugin plugin)
Enables the specified plugin
|
void |
PluginLoader.enablePlugin(@NotNull Plugin plugin)
Enables the specified plugin
|
@NotNull List<RegisteredServiceProvider<?>> |
ServicesManager.getRegistrations(@NotNull Plugin plugin)
Get registrations of providers for a plugin.
|
@NotNull List<RegisteredServiceProvider<?>> |
SimpleServicesManager.getRegistrations(@NotNull Plugin plugin)
Get registrations of providers for a plugin.
|
boolean |
SimplePluginManager.isPluginEnabled(@Nullable Plugin plugin)
Checks if the given plugin is enabled or not
|
boolean |
PluginManager.isPluginEnabled(@Nullable Plugin plugin)
Checks if the given plugin is enabled or not
|
<T> void |
ServicesManager.register(@NotNull Class<T> service,
T provider,
@NotNull Plugin plugin,
@NotNull ServicePriority priority)
Register a provider of a service.
|
<T> void |
SimpleServicesManager.register(@NotNull Class<T> service,
T provider,
@NotNull Plugin plugin,
@NotNull ServicePriority priority)
Register a provider of a service.
|
void |
SimplePluginManager.registerEvent(@NotNull Class<? extends Event> event,
@NotNull Listener listener,
@NotNull EventPriority priority,
@NotNull EventExecutor executor,
@NotNull Plugin plugin) |
void |
PluginManager.registerEvent(@NotNull Class<? extends Event> event,
@NotNull Listener listener,
@NotNull EventPriority priority,
@NotNull EventExecutor executor,
@NotNull Plugin plugin)
Registers the specified executor to the given event class
|
void |
SimplePluginManager.registerEvent(@NotNull Class<? extends Event> event,
@NotNull Listener listener,
@NotNull EventPriority priority,
@NotNull EventExecutor executor,
@NotNull Plugin plugin,
boolean ignoreCancelled)
Registers the given event to the specified listener using a directly
passed EventExecutor
|
void |
PluginManager.registerEvent(@NotNull Class<? extends Event> event,
@NotNull Listener listener,
@NotNull EventPriority priority,
@NotNull EventExecutor executor,
@NotNull Plugin plugin,
boolean ignoreCancelled)
Registers the specified executor to the given event class
|
void |
SimplePluginManager.registerEvents(@NotNull Listener listener,
@NotNull Plugin plugin) |
void |
PluginManager.registerEvents(@NotNull Listener listener,
@NotNull Plugin plugin)
Registers all the events in the given listener class
|
void |
ServicesManager.unregisterAll(@NotNull Plugin plugin)
Unregister all the providers registered by a particular plugin.
|
void |
SimpleServicesManager.unregisterAll(@NotNull Plugin plugin)
Unregister all the providers registered by a particular plugin.
|
Constructor and Description |
---|
PluginLogger(@NotNull Plugin context)
Creates a new PluginLogger that extracts the name from a plugin.
|
RegisteredListener(@NotNull Listener listener,
@NotNull EventExecutor executor,
@NotNull EventPriority priority,
@NotNull Plugin plugin,
boolean ignoreCancelled) |
RegisteredServiceProvider(@NotNull Class<T> service,
T provider,
@NotNull ServicePriority priority,
@NotNull Plugin plugin) |
TimedRegisteredListener(@NotNull Listener pluginListener,
@NotNull EventExecutor eventExecutor,
@NotNull EventPriority eventPriority,
@NotNull Plugin registeredPlugin,
boolean listenCancelled) |
Modifier and Type | Class and Description |
---|---|
class |
JavaPlugin
Represents a Java plugin
|
Modifier and Type | Method and Description |
---|---|
@NotNull Plugin |
JavaPluginLoader.loadPlugin(@NotNull File file) |
Modifier and Type | Method and Description |
---|---|
@NotNull Map<Class<? extends Event>,Set<RegisteredListener>> |
JavaPluginLoader.createRegisteredListeners(@NotNull Listener listener,
@NotNull Plugin plugin) |
void |
JavaPluginLoader.disablePlugin(@NotNull Plugin plugin) |
void |
JavaPluginLoader.disablePlugin(@NotNull Plugin plugin,
boolean closeClassloader) |
void |
JavaPluginLoader.enablePlugin(@NotNull Plugin plugin) |
Modifier and Type | Method and Description |
---|---|
@NotNull Plugin |
PluginMessageListenerRegistration.getPlugin()
Gets the plugin that this registration is for.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Set<PluginMessageListenerRegistration> |
StandardMessenger.getIncomingChannelRegistrations(@NotNull Plugin plugin) |
@NotNull Set<PluginMessageListenerRegistration> |
Messenger.getIncomingChannelRegistrations(@NotNull Plugin plugin)
Gets a set containing all the incoming plugin channel registrations
that the specified plugin has.
|
@NotNull Set<PluginMessageListenerRegistration> |
StandardMessenger.getIncomingChannelRegistrations(@NotNull Plugin plugin,
@NotNull String channel) |
@NotNull Set<PluginMessageListenerRegistration> |
Messenger.getIncomingChannelRegistrations(@NotNull Plugin plugin,
@NotNull String channel)
Gets a set containing all the incoming plugin channel registrations
that the specified plugin has on the requested channel.
|
@NotNull Set<String> |
StandardMessenger.getIncomingChannels(@NotNull Plugin plugin) |
@NotNull Set<String> |
Messenger.getIncomingChannels(@NotNull Plugin plugin)
Gets a set containing all the incoming plugin channels that the
specified plugin is registered for.
|
@NotNull Set<String> |
StandardMessenger.getOutgoingChannels(@NotNull Plugin plugin) |
@NotNull Set<String> |
Messenger.getOutgoingChannels(@NotNull Plugin plugin)
Gets a set containing all the outgoing plugin channels that the
specified plugin is registered to.
|
boolean |
StandardMessenger.isIncomingChannelRegistered(@NotNull Plugin plugin,
@NotNull String channel) |
boolean |
Messenger.isIncomingChannelRegistered(@NotNull Plugin plugin,
@NotNull String channel)
Checks if the specified plugin has registered to receive incoming
messages through the requested channel.
|
boolean |
StandardMessenger.isOutgoingChannelRegistered(@NotNull Plugin plugin,
@NotNull String channel) |
boolean |
Messenger.isOutgoingChannelRegistered(@NotNull Plugin plugin,
@NotNull String channel)
Checks if the specified plugin has registered to send outgoing messages
through the requested channel.
|
@NotNull PluginMessageListenerRegistration |
StandardMessenger.registerIncomingPluginChannel(@NotNull Plugin plugin,
@NotNull String channel,
@NotNull PluginMessageListener listener) |
@NotNull PluginMessageListenerRegistration |
Messenger.registerIncomingPluginChannel(@NotNull Plugin plugin,
@NotNull String channel,
@NotNull PluginMessageListener listener)
Registers the specific plugin for listening on the requested incoming
plugin channel, allowing it to act upon any plugin messages.
|
void |
StandardMessenger.registerOutgoingPluginChannel(@NotNull Plugin plugin,
@NotNull String channel) |
void |
Messenger.registerOutgoingPluginChannel(@NotNull Plugin plugin,
@NotNull String channel)
Registers the specific plugin to the requested outgoing plugin channel,
allowing it to send messages through that channel to any clients.
|
void |
PluginMessageRecipient.sendPluginMessage(@NotNull Plugin source,
@NotNull String channel,
@NotNull byte[] message)
Sends this recipient a Plugin Message on the specified outgoing
channel.
|
void |
StandardMessenger.unregisterIncomingPluginChannel(@NotNull Plugin plugin) |
void |
Messenger.unregisterIncomingPluginChannel(@NotNull Plugin plugin)
Unregisters the specific plugin from listening on all plugin channels
through all listeners.
|
void |
StandardMessenger.unregisterIncomingPluginChannel(@NotNull Plugin plugin,
@NotNull String channel) |
void |
Messenger.unregisterIncomingPluginChannel(@NotNull Plugin plugin,
@NotNull String channel)
Unregisters the specific plugin from listening on the requested
incoming plugin channel, no longer allowing it to act upon any plugin
messages.
|
void |
StandardMessenger.unregisterIncomingPluginChannel(@NotNull Plugin plugin,
@NotNull String channel,
@NotNull PluginMessageListener listener) |
void |
Messenger.unregisterIncomingPluginChannel(@NotNull Plugin plugin,
@NotNull String channel,
@NotNull PluginMessageListener listener)
Unregisters the specific plugin's listener from listening on the
requested incoming plugin channel, no longer allowing it to act upon
any plugin messages.
|
void |
StandardMessenger.unregisterOutgoingPluginChannel(@NotNull Plugin plugin) |
void |
Messenger.unregisterOutgoingPluginChannel(@NotNull Plugin plugin)
Unregisters the specific plugin from all outgoing plugin channels, no
longer allowing it to send any plugin messages.
|
void |
StandardMessenger.unregisterOutgoingPluginChannel(@NotNull Plugin plugin,
@NotNull String channel) |
void |
Messenger.unregisterOutgoingPluginChannel(@NotNull Plugin plugin,
@NotNull String channel)
Unregisters the specific plugin from the requested outgoing plugin
channel, no longer allowing it to send messages through that channel to
any clients.
|
static void |
StandardMessenger.validatePluginMessage(@NotNull Messenger messenger,
@NotNull Plugin source,
@NotNull String channel,
@NotNull byte[] message)
Validates the input of a Plugin Message, ensuring the arguments are all
valid.
|
Constructor and Description |
---|
PluginMessageListenerRegistration(@NotNull Messenger messenger,
@NotNull Plugin plugin,
@NotNull String channel,
@NotNull PluginMessageListener listener) |
Modifier and Type | Method and Description |
---|---|
@NotNull Plugin |
BukkitWorker.getOwner()
Returns the Plugin that owns this task.
|
@NotNull Plugin |
BukkitTask.getOwner()
Returns the Plugin that owns this task.
|
Modifier and Type | Method and Description |
---|---|
<T> @NotNull Future<T> |
BukkitScheduler.callSyncMethod(@NotNull Plugin plugin,
@NotNull Callable<T> task)
Calls a method on the main thread and returns a Future object.
|
void |
BukkitScheduler.cancelTasks(@NotNull Plugin plugin)
Removes all tasks associated with a particular plugin from the
scheduler.
|
Executor |
BukkitScheduler.getMainThreadExecutor(@NotNull Plugin plugin)
Returns an executor that will run tasks on the next server tick.
|
@NotNull BukkitTask |
BukkitRunnable.runTask(@NotNull Plugin plugin)
Schedules this in the Bukkit scheduler to run on next tick.
|
@NotNull BukkitTask |
BukkitScheduler.runTask(@NotNull Plugin plugin,
@NotNull BukkitRunnable task)
Deprecated.
|
void |
BukkitScheduler.runTask(@NotNull Plugin plugin,
@NotNull Consumer<BukkitTask> task)
Returns a task that will run on the next server tick.
|
@NotNull BukkitTask |
BukkitScheduler.runTask(@NotNull Plugin plugin,
@NotNull Runnable task)
Returns a task that will run on the next server tick.
|
@NotNull BukkitTask |
BukkitRunnable.runTaskAsynchronously(@NotNull Plugin plugin)
Asynchronous tasks should never access any API in Bukkit.
|
@NotNull BukkitTask |
BukkitScheduler.runTaskAsynchronously(@NotNull Plugin plugin,
@NotNull BukkitRunnable task)
Deprecated.
|
void |
BukkitScheduler.runTaskAsynchronously(@NotNull Plugin plugin,
@NotNull Consumer<BukkitTask> task)
Asynchronous tasks should never access any API in Bukkit.
|
@NotNull BukkitTask |
BukkitScheduler.runTaskAsynchronously(@NotNull Plugin plugin,
@NotNull Runnable task)
Asynchronous tasks should never access any API in Bukkit.
|
@NotNull BukkitTask |
BukkitScheduler.runTaskLater(@NotNull Plugin plugin,
@NotNull BukkitRunnable task,
long delay)
Deprecated.
|
void |
BukkitScheduler.runTaskLater(@NotNull Plugin plugin,
@NotNull Consumer<BukkitTask> task,
long delay)
Returns a task that will run after the specified number of server
ticks.
|
@NotNull BukkitTask |
BukkitRunnable.runTaskLater(@NotNull Plugin plugin,
long delay)
Schedules this to run after the specified number of server ticks.
|
@NotNull BukkitTask |
BukkitScheduler.runTaskLater(@NotNull Plugin plugin,
@NotNull Runnable task,
long delay)
Returns a task that will run after the specified number of server
ticks.
|
@NotNull BukkitTask |
BukkitScheduler.runTaskLaterAsynchronously(@NotNull Plugin plugin,
@NotNull BukkitRunnable task,
long delay)
Deprecated.
|
void |
BukkitScheduler.runTaskLaterAsynchronously(@NotNull Plugin plugin,
@NotNull Consumer<BukkitTask> task,
long delay)
Asynchronous tasks should never access any API in Bukkit.
|
@NotNull BukkitTask |
BukkitRunnable.runTaskLaterAsynchronously(@NotNull Plugin plugin,
long delay)
Asynchronous tasks should never access any API in Bukkit.
|
@NotNull BukkitTask |
BukkitScheduler.runTaskLaterAsynchronously(@NotNull Plugin plugin,
@NotNull Runnable task,
long delay)
Asynchronous tasks should never access any API in Bukkit.
|
@NotNull BukkitTask |
BukkitScheduler.runTaskTimer(@NotNull Plugin plugin,
@NotNull BukkitRunnable task,
long delay,
long period)
Deprecated.
|
void |
BukkitScheduler.runTaskTimer(@NotNull Plugin plugin,
@NotNull Consumer<BukkitTask> task,
long delay,
long period)
Returns a task that will repeatedly run until cancelled, starting after
the specified number of server ticks.
|
@NotNull BukkitTask |
BukkitRunnable.runTaskTimer(@NotNull Plugin plugin,
long delay,
long period)
Schedules this to repeatedly run until cancelled, starting after the
specified number of server ticks.
|
@NotNull BukkitTask |
BukkitScheduler.runTaskTimer(@NotNull Plugin plugin,
@NotNull Runnable task,
long delay,
long period)
Returns a task that will repeatedly run until cancelled, starting after
the specified number of server ticks.
|
@NotNull BukkitTask |
BukkitScheduler.runTaskTimerAsynchronously(@NotNull Plugin plugin,
@NotNull BukkitRunnable task,
long delay,
long period)
Deprecated.
|
void |
BukkitScheduler.runTaskTimerAsynchronously(@NotNull Plugin plugin,
@NotNull Consumer<BukkitTask> task,
long delay,
long period)
Asynchronous tasks should never access any API in Bukkit.
|
@NotNull BukkitTask |
BukkitRunnable.runTaskTimerAsynchronously(@NotNull Plugin plugin,
long delay,
long period)
Asynchronous tasks should never access any API in Bukkit.
|
@NotNull BukkitTask |
BukkitScheduler.runTaskTimerAsynchronously(@NotNull Plugin plugin,
@NotNull Runnable task,
long delay,
long period)
Asynchronous tasks should never access any API in Bukkit.
|
int |
BukkitScheduler.scheduleAsyncDelayedTask(@NotNull Plugin plugin,
@NotNull Runnable task)
Deprecated.
This name is misleading, as it does not schedule "a sync"
task, but rather, "an async" task
|
int |
BukkitScheduler.scheduleAsyncDelayedTask(@NotNull Plugin plugin,
@NotNull Runnable task,
long delay)
Deprecated.
This name is misleading, as it does not schedule "a sync"
task, but rather, "an async" task
|
int |
BukkitScheduler.scheduleAsyncRepeatingTask(@NotNull Plugin plugin,
@NotNull Runnable task,
long delay,
long period)
Deprecated.
This name is misleading, as it does not schedule "a sync"
task, but rather, "an async" task
|
int |
BukkitScheduler.scheduleSyncDelayedTask(@NotNull Plugin plugin,
@NotNull BukkitRunnable task)
Deprecated.
|
int |
BukkitScheduler.scheduleSyncDelayedTask(@NotNull Plugin plugin,
@NotNull BukkitRunnable task,
long delay)
Deprecated.
|
int |
BukkitScheduler.scheduleSyncDelayedTask(@NotNull Plugin plugin,
@NotNull Runnable task)
Schedules a once off task to occur as soon as possible.
|
int |
BukkitScheduler.scheduleSyncDelayedTask(@NotNull Plugin plugin,
@NotNull Runnable task,
long delay)
Schedules a once off task to occur after a delay.
|
int |
BukkitScheduler.scheduleSyncRepeatingTask(@NotNull Plugin plugin,
@NotNull BukkitRunnable task,
long delay,
long period)
Deprecated.
|
int |
BukkitScheduler.scheduleSyncRepeatingTask(@NotNull Plugin plugin,
@NotNull Runnable task,
long delay,
long period)
Schedules a repeating task.
|
Copyright © 2021. All rights reserved.