Package | Description |
---|---|
org.bukkit |
More generalized classes in the API.
|
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. |
Constructor | Description |
---|---|
NamespacedKey(Plugin plugin,
java.lang.String key) |
Create a key in the plugin's namespace.
|
Modifier and Type | Method | Description |
---|---|---|
Plugin |
PluginCommand.getPlugin() |
Gets the owner of this PluginCommand
|
Plugin |
PluginIdentifiableCommand.getPlugin() |
Gets the owner of this PluginIdentifiableCommand.
|
Modifier and Type | Method | Description |
---|---|---|
static java.util.List<Command> |
PluginCommandYamlParser.parse(Plugin plugin) |
Constructor | Description |
---|---|
PluginCommand(java.lang.String name,
Plugin owner) |
Modifier and Type | Field | Description |
---|---|---|
protected Plugin |
ConversationFactory.plugin |
|
protected Plugin |
InactivityConversationCanceller.plugin |
|
protected Plugin |
PluginNameConversationPrefix.plugin |
Modifier and Type | Method | Description |
---|---|---|
Plugin |
ConversationContext.getPlugin() |
Gets the plugin that owns this conversation.
|
Constructor | Description |
---|---|
Conversation(Plugin plugin,
Conversable forWhom,
Prompt firstPrompt) |
Initializes a new Conversation.
|
Conversation(Plugin plugin,
Conversable forWhom,
Prompt firstPrompt,
java.util.Map<java.lang.Object,java.lang.Object> initialSessionData) |
Initializes a new Conversation.
|
ConversationContext(Plugin plugin,
Conversable forWhom,
java.util.Map<java.lang.Object,java.lang.Object> initialSessionData) |
|
ConversationFactory(Plugin plugin) |
Constructs a ConversationFactory.
|
InactivityConversationCanceller(Plugin plugin,
int timeoutSeconds) |
Creates an InactivityConversationCanceller.
|
PlayerNamePrompt(Plugin plugin) |
|
PluginNameConversationPrefix(Plugin plugin) |
|
PluginNameConversationPrefix(Plugin plugin,
java.lang.String separator,
ChatColor prefixColor) |
Modifier and Type | Method | Description |
---|---|---|
void |
Player.hidePlayer(Plugin plugin,
Player player) |
Hides a player from this player
|
void |
Player.showPlayer(Plugin plugin,
Player player) |
Allows this player to see a player that was previously hidden.
|
Modifier and Type | Method | Description |
---|---|---|
static java.util.ArrayList<RegisteredListener> |
HandlerList.getRegisteredListeners(Plugin plugin) |
Get a specific plugin's registered listeners associated with this
handler list
|
void |
HandlerList.unregister(Plugin plugin) |
Remove a specific plugin's listeners from this handler
|
static void |
HandlerList.unregisterAll(Plugin plugin) |
Unregister a specific plugin's listeners from all handler lists.
|
Modifier and Type | Method | Description |
---|---|---|
Plugin |
PluginEvent.getPlugin() |
Gets the plugin involved in this event
|
Constructor | Description |
---|---|
PluginDisableEvent(Plugin plugin) |
|
PluginEnableEvent(Plugin plugin) |
|
PluginEvent(Plugin plugin) |
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.ref.WeakReference<Plugin> |
MetadataValueAdapter.owningPlugin |
Modifier and Type | Method | Description |
---|---|---|
Plugin |
MetadataValue.getOwningPlugin() |
Returns the
Plugin that created this metadata item. |
Plugin |
MetadataValueAdapter.getOwningPlugin() |
Modifier and Type | Method | Description |
---|---|---|
void |
MetadataStore.invalidateAll(Plugin owningPlugin) |
Invalidates all metadata in the metadata store that originates from the
given plugin.
|
void |
MetadataStoreBase.invalidateAll(Plugin owningPlugin) |
Invalidates all metadata in the metadata store that originates from the
given plugin.
|
void |
Metadatable.removeMetadata(java.lang.String metadataKey,
Plugin owningPlugin) |
Removes the given metadata value from the implementing object's
metadata store.
|
void |
MetadataStore.removeMetadata(T subject,
java.lang.String metadataKey,
Plugin owningPlugin) |
Removes a metadata item owned by a plugin from a subject.
|
void |
MetadataStoreBase.removeMetadata(T subject,
java.lang.String metadataKey,
Plugin owningPlugin) |
Removes a metadata item owned by a plugin from a subject.
|
Constructor | Description |
---|---|
FixedMetadataValue(Plugin owningPlugin,
java.lang.Object value) |
Initializes a FixedMetadataValue with an Object
|
LazyMetadataValue(Plugin owningPlugin) |
Protected special constructor used by FixedMetadataValue to bypass
standard setup.
|
LazyMetadataValue(Plugin owningPlugin,
java.util.concurrent.Callable<java.lang.Object> lazyValue) |
Initialized a LazyMetadataValue object with the default
CACHE_AFTER_FIRST_EVAL cache strategy.
|
LazyMetadataValue(Plugin owningPlugin,
LazyMetadataValue.CacheStrategy cacheStrategy,
java.util.concurrent.Callable<java.lang.Object> lazyValue) |
Initializes a LazyMetadataValue object with a specific cache strategy.
|
MetadataValueAdapter(Plugin owningPlugin) |
Modifier and Type | Method | Description |
---|---|---|
Plugin |
PermissionAttachment.getPlugin() |
Gets the plugin responsible for this attachment
|
Modifier and Type | Method | Description |
---|---|---|
PermissionAttachment |
Permissible.addAttachment(Plugin plugin) |
Adds a new empty
PermissionAttachment to this object |
PermissionAttachment |
Permissible.addAttachment(Plugin plugin,
int ticks) |
Temporarily adds a new empty
PermissionAttachment to this
object |
PermissionAttachment |
Permissible.addAttachment(Plugin plugin,
java.lang.String name,
boolean value) |
Adds a new
PermissionAttachment with a single permission by
name and value |
PermissionAttachment |
Permissible.addAttachment(Plugin plugin,
java.lang.String name,
boolean value,
int ticks) |
Temporarily adds a new
PermissionAttachment with a single
permission by name and value |
PermissionAttachment |
PermissibleBase.addAttachment(Plugin plugin) |
|
PermissionAttachment |
PermissibleBase.addAttachment(Plugin plugin,
int ticks) |
|
PermissionAttachment |
PermissibleBase.addAttachment(Plugin plugin,
java.lang.String name,
boolean value) |
|
PermissionAttachment |
PermissibleBase.addAttachment(Plugin plugin,
java.lang.String name,
boolean value,
int ticks) |
Constructor | Description |
---|---|
PermissionAttachment(Plugin plugin,
Permissible Permissible) |
Modifier and Type | Class | Description |
---|---|---|
class |
PluginBase |
Represents a base
Plugin |
Modifier and Type | Method | Description |
---|---|---|
Plugin |
PluginManager.getPlugin(java.lang.String name) |
Checks if the given plugin is loaded and returns it when applicable
|
Plugin |
RegisteredListener.getPlugin() |
Gets the plugin for this registration
|
Plugin |
RegisteredServiceProvider.getPlugin() |
|
Plugin |
SimplePluginManager.getPlugin(java.lang.String name) |
Checks if the given plugin is loaded and returns it when applicable
|
Plugin[] |
PluginManager.getPlugins() |
Gets a list of all currently loaded plugins
|
Plugin[] |
SimplePluginManager.getPlugins() |
|
Plugin |
PluginLoader.loadPlugin(java.io.File file) |
Loads the plugin contained in the specified file
|
Plugin |
PluginManager.loadPlugin(java.io.File file) |
Loads the plugin in the specified file
|
Plugin |
SimplePluginManager.loadPlugin(java.io.File file) |
Loads the plugin in the specified file
|
Plugin[] |
PluginManager.loadPlugins(java.io.File directory) |
Loads the plugins contained within the specified directory
|
Plugin[] |
SimplePluginManager.loadPlugins(java.io.File directory) |
Loads the plugins contained within the specified directory
|
Modifier and Type | Method | Description |
---|---|---|
java.util.Map<java.lang.Class<? extends Event>,java.util.Set<RegisteredListener>> |
PluginLoader.createRegisteredListeners(Listener listener,
Plugin plugin) |
Creates and returns registered listeners for the event classes used in
this listener
|
void |
PluginLoader.disablePlugin(Plugin plugin) |
Disables the specified plugin
|
void |
PluginManager.disablePlugin(Plugin plugin) |
Disables the specified plugin
|
void |
SimplePluginManager.disablePlugin(Plugin plugin) |
|
void |
PluginLoader.enablePlugin(Plugin plugin) |
Enables the specified plugin
|
void |
PluginManager.enablePlugin(Plugin plugin) |
Enables the specified plugin
|
void |
SimplePluginManager.enablePlugin(Plugin plugin) |
|
java.util.List<RegisteredServiceProvider<?>> |
ServicesManager.getRegistrations(Plugin plugin) |
Get registrations of providers for a plugin.
|
java.util.List<RegisteredServiceProvider<?>> |
SimpleServicesManager.getRegistrations(Plugin plugin) |
Get registrations of providers for a plugin.
|
boolean |
PluginManager.isPluginEnabled(Plugin plugin) |
Checks if the given plugin is enabled or not
|
boolean |
SimplePluginManager.isPluginEnabled(Plugin plugin) |
Checks if the given plugin is enabled or not
|
<T> void |
ServicesManager.register(java.lang.Class<T> service,
T provider,
Plugin plugin,
ServicePriority priority) |
Register a provider of a service.
|
<T> void |
SimpleServicesManager.register(java.lang.Class<T> service,
T provider,
Plugin plugin,
ServicePriority priority) |
Register a provider of a service.
|
void |
PluginManager.registerEvent(java.lang.Class<? extends Event> event,
Listener listener,
EventPriority priority,
EventExecutor executor,
Plugin plugin) |
Registers the specified executor to the given event class
|
void |
PluginManager.registerEvent(java.lang.Class<? extends Event> event,
Listener listener,
EventPriority priority,
EventExecutor executor,
Plugin plugin,
boolean ignoreCancelled) |
Registers the specified executor to the given event class
|
void |
SimplePluginManager.registerEvent(java.lang.Class<? extends Event> event,
Listener listener,
EventPriority priority,
EventExecutor executor,
Plugin plugin) |
|
void |
SimplePluginManager.registerEvent(java.lang.Class<? extends Event> event,
Listener listener,
EventPriority priority,
EventExecutor executor,
Plugin plugin,
boolean ignoreCancelled) |
Registers the given event to the specified listener using a directly
passed EventExecutor
|
void |
PluginManager.registerEvents(Listener listener,
Plugin plugin) |
Registers all the events in the given listener class
|
void |
SimplePluginManager.registerEvents(Listener listener,
Plugin plugin) |
|
void |
ServicesManager.unregisterAll(Plugin plugin) |
Unregister all the providers registered by a particular plugin.
|
void |
SimpleServicesManager.unregisterAll(Plugin plugin) |
Unregister all the providers registered by a particular plugin.
|
Constructor | Description |
---|---|
PluginLogger(Plugin context) |
Creates a new PluginLogger that extracts the name from a plugin.
|
RegisteredListener(Listener listener,
EventExecutor executor,
EventPriority priority,
Plugin plugin,
boolean ignoreCancelled) |
|
RegisteredServiceProvider(java.lang.Class<T> service,
T provider,
ServicePriority priority,
Plugin plugin) |
|
TimedRegisteredListener(Listener pluginListener,
EventExecutor eventExecutor,
EventPriority eventPriority,
Plugin registeredPlugin,
boolean listenCancelled) |
Modifier and Type | Class | Description |
---|---|---|
class |
JavaPlugin |
Represents a Java plugin
|
Modifier and Type | Method | Description |
---|---|---|
Plugin |
JavaPluginLoader.loadPlugin(java.io.File file) |
Modifier and Type | Method | Description |
---|---|---|
java.util.Map<java.lang.Class<? extends Event>,java.util.Set<RegisteredListener>> |
JavaPluginLoader.createRegisteredListeners(Listener listener,
Plugin plugin) |
|
void |
JavaPluginLoader.disablePlugin(Plugin plugin) |
|
void |
JavaPluginLoader.enablePlugin(Plugin plugin) |
Modifier and Type | Method | Description |
---|---|---|
Plugin |
PluginMessageListenerRegistration.getPlugin() |
Gets the plugin that this registration is for.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.Set<PluginMessageListenerRegistration> |
Messenger.getIncomingChannelRegistrations(Plugin plugin) |
Gets a set containing all the incoming plugin channel registrations
that the specified plugin has.
|
java.util.Set<PluginMessageListenerRegistration> |
Messenger.getIncomingChannelRegistrations(Plugin plugin,
java.lang.String channel) |
Gets a set containing all the incoming plugin channel registrations
that the specified plugin has on the requested channel.
|
java.util.Set<PluginMessageListenerRegistration> |
StandardMessenger.getIncomingChannelRegistrations(Plugin plugin) |
|
java.util.Set<PluginMessageListenerRegistration> |
StandardMessenger.getIncomingChannelRegistrations(Plugin plugin,
java.lang.String channel) |
|
java.util.Set<java.lang.String> |
Messenger.getIncomingChannels(Plugin plugin) |
Gets a set containing all the incoming plugin channels that the
specified plugin is registered for.
|
java.util.Set<java.lang.String> |
StandardMessenger.getIncomingChannels(Plugin plugin) |
|
java.util.Set<java.lang.String> |
Messenger.getOutgoingChannels(Plugin plugin) |
Gets a set containing all the outgoing plugin channels that the
specified plugin is registered to.
|
java.util.Set<java.lang.String> |
StandardMessenger.getOutgoingChannels(Plugin plugin) |
|
boolean |
Messenger.isIncomingChannelRegistered(Plugin plugin,
java.lang.String channel) |
Checks if the specified plugin has registered to receive incoming
messages through the requested channel.
|
boolean |
StandardMessenger.isIncomingChannelRegistered(Plugin plugin,
java.lang.String channel) |
|
boolean |
Messenger.isOutgoingChannelRegistered(Plugin plugin,
java.lang.String channel) |
Checks if the specified plugin has registered to send outgoing messages
through the requested channel.
|
boolean |
StandardMessenger.isOutgoingChannelRegistered(Plugin plugin,
java.lang.String channel) |
|
PluginMessageListenerRegistration |
Messenger.registerIncomingPluginChannel(Plugin plugin,
java.lang.String channel,
PluginMessageListener listener) |
Registers the specific plugin for listening on the requested incoming
plugin channel, allowing it to act upon any plugin messages.
|
PluginMessageListenerRegistration |
StandardMessenger.registerIncomingPluginChannel(Plugin plugin,
java.lang.String channel,
PluginMessageListener listener) |
|
void |
Messenger.registerOutgoingPluginChannel(Plugin plugin,
java.lang.String channel) |
Registers the specific plugin to the requested outgoing plugin channel,
allowing it to send messages through that channel to any clients.
|
void |
StandardMessenger.registerOutgoingPluginChannel(Plugin plugin,
java.lang.String channel) |
|
void |
PluginMessageRecipient.sendPluginMessage(Plugin source,
java.lang.String channel,
byte[] message) |
Sends this recipient a Plugin Message on the specified outgoing
channel.
|
void |
Messenger.unregisterIncomingPluginChannel(Plugin plugin) |
Unregisters the specific plugin from listening on all plugin channels
through all listeners.
|
void |
Messenger.unregisterIncomingPluginChannel(Plugin plugin,
java.lang.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 |
Messenger.unregisterIncomingPluginChannel(Plugin plugin,
java.lang.String channel,
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.unregisterIncomingPluginChannel(Plugin plugin) |
|
void |
StandardMessenger.unregisterIncomingPluginChannel(Plugin plugin,
java.lang.String channel) |
|
void |
StandardMessenger.unregisterIncomingPluginChannel(Plugin plugin,
java.lang.String channel,
PluginMessageListener listener) |
|
void |
Messenger.unregisterOutgoingPluginChannel(Plugin plugin) |
Unregisters the specific plugin from all outgoing plugin channels, no
longer allowing it to send any plugin messages.
|
void |
Messenger.unregisterOutgoingPluginChannel(Plugin plugin,
java.lang.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.
|
void |
StandardMessenger.unregisterOutgoingPluginChannel(Plugin plugin) |
|
void |
StandardMessenger.unregisterOutgoingPluginChannel(Plugin plugin,
java.lang.String channel) |
|
static void |
StandardMessenger.validatePluginMessage(Messenger messenger,
Plugin source,
java.lang.String channel,
byte[] message) |
Validates the input of a Plugin Message, ensuring the arguments are all
valid.
|
Constructor | Description |
---|---|
PluginMessageListenerRegistration(Messenger messenger,
Plugin plugin,
java.lang.String channel,
PluginMessageListener listener) |
Modifier and Type | Method | Description |
---|---|---|
Plugin |
BukkitTask.getOwner() |
Returns the Plugin that owns this task.
|
Plugin |
BukkitWorker.getOwner() |
Returns the Plugin that owns this task.
|
Modifier and Type | Method | Description |
---|---|---|
<T> java.util.concurrent.Future<T> |
BukkitScheduler.callSyncMethod(Plugin plugin,
java.util.concurrent.Callable<T> task) |
Calls a method on the main thread and returns a Future object.
|
void |
BukkitScheduler.cancelTasks(Plugin plugin) |
Removes all tasks associated with a particular plugin from the
scheduler.
|
BukkitTask |
BukkitRunnable.runTask(Plugin plugin) |
Schedules this in the Bukkit scheduler to run on next tick.
|
BukkitTask |
BukkitScheduler.runTask(Plugin plugin,
java.lang.Runnable task) |
Returns a task that will run on the next server tick.
|
BukkitTask |
BukkitScheduler.runTask(Plugin plugin,
BukkitRunnable task) |
Deprecated.
|
BukkitTask |
BukkitRunnable.runTaskAsynchronously(Plugin plugin) |
Asynchronous tasks should never access any API in Bukkit.
|
BukkitTask |
BukkitScheduler.runTaskAsynchronously(Plugin plugin,
java.lang.Runnable task) |
Asynchronous tasks should never access any API in Bukkit.
|
BukkitTask |
BukkitScheduler.runTaskAsynchronously(Plugin plugin,
BukkitRunnable task) |
Deprecated.
|
BukkitTask |
BukkitRunnable.runTaskLater(Plugin plugin,
long delay) |
Schedules this to run after the specified number of server ticks.
|
BukkitTask |
BukkitScheduler.runTaskLater(Plugin plugin,
java.lang.Runnable task,
long delay) |
Returns a task that will run after the specified number of server
ticks.
|
BukkitTask |
BukkitScheduler.runTaskLater(Plugin plugin,
BukkitRunnable task,
long delay) |
Deprecated.
|
BukkitTask |
BukkitRunnable.runTaskLaterAsynchronously(Plugin plugin,
long delay) |
Asynchronous tasks should never access any API in Bukkit.
|
BukkitTask |
BukkitScheduler.runTaskLaterAsynchronously(Plugin plugin,
java.lang.Runnable task,
long delay) |
Asynchronous tasks should never access any API in Bukkit.
|
BukkitTask |
BukkitScheduler.runTaskLaterAsynchronously(Plugin plugin,
BukkitRunnable task,
long delay) |
Deprecated.
|
BukkitTask |
BukkitRunnable.runTaskTimer(Plugin plugin,
long delay,
long period) |
Schedules this to repeatedly run until cancelled, starting after the
specified number of server ticks.
|
BukkitTask |
BukkitScheduler.runTaskTimer(Plugin plugin,
java.lang.Runnable task,
long delay,
long period) |
Returns a task that will repeatedly run until cancelled, starting after
the specified number of server ticks.
|
BukkitTask |
BukkitScheduler.runTaskTimer(Plugin plugin,
BukkitRunnable task,
long delay,
long period) |
Deprecated.
|
BukkitTask |
BukkitRunnable.runTaskTimerAsynchronously(Plugin plugin,
long delay,
long period) |
Asynchronous tasks should never access any API in Bukkit.
|
BukkitTask |
BukkitScheduler.runTaskTimerAsynchronously(Plugin plugin,
java.lang.Runnable task,
long delay,
long period) |
Asynchronous tasks should never access any API in Bukkit.
|
BukkitTask |
BukkitScheduler.runTaskTimerAsynchronously(Plugin plugin,
BukkitRunnable task,
long delay,
long period) |
Deprecated.
|
int |
BukkitScheduler.scheduleAsyncDelayedTask(Plugin plugin,
java.lang.Runnable task) |
Deprecated.
This name is misleading, as it does not schedule "a sync"
task, but rather, "an async" task
|
int |
BukkitScheduler.scheduleAsyncDelayedTask(Plugin plugin,
java.lang.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(Plugin plugin,
java.lang.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(Plugin plugin,
java.lang.Runnable task) |
Schedules a once off task to occur as soon as possible.
|
int |
BukkitScheduler.scheduleSyncDelayedTask(Plugin plugin,
java.lang.Runnable task,
long delay) |
Schedules a once off task to occur after a delay.
|
int |
BukkitScheduler.scheduleSyncDelayedTask(Plugin plugin,
BukkitRunnable task) |
Deprecated.
|
int |
BukkitScheduler.scheduleSyncDelayedTask(Plugin plugin,
BukkitRunnable task,
long delay) |
Deprecated.
|
int |
BukkitScheduler.scheduleSyncRepeatingTask(Plugin plugin,
java.lang.Runnable task,
long delay,
long period) |
Schedules a repeating task.
|
int |
BukkitScheduler.scheduleSyncRepeatingTask(Plugin plugin,
BukkitRunnable task,
long delay,
long period) |
Deprecated.
|
Copyright © 2018. All rights reserved.