public class PluginHandler extends com.google.common.collect.ForwardingList<Plugin> implements Plugins
To access this handler, use this code:
PluginHandler handler = Registered.plugins();
| Constructor and Description |
|---|
PluginHandler()
Do not instantiate this without being Trident
|
| Modifier and Type | Method and Description |
|---|---|
protected List<Plugin> |
delegate() |
void |
disable(Plugin plugin)
Disables the plugin unloading the classes and removing the subprocess
|
void |
enable(Plugin plugin)
Enables the given plugin
|
SelectableThread |
executor()
Obtains the worker used to load plugins.
|
Plugin |
load(File pluginFile)
Loads the plugin file
|
add, addAll, equals, get, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, set, standardAdd, standardAddAll, standardEquals, standardHashCode, standardIndexOf, standardIterator, standardLastIndexOf, standardListIterator, standardListIterator, standardSubList, subListadd, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRemoveAll, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArraypublic PluginHandler()
To access this handler, use this code:
TridentPluginHandler handler = Handler.plugins();
@InternalUseOnly public Plugin load(File pluginFile)
Pluginspublic void enable(Plugin plugin)
Pluginspublic void disable(Plugin plugin)
Pluginsprotected List<Plugin> delegate()
delegate in class com.google.common.collect.ForwardingList<Plugin>public SelectableThread executor()
PluginsCopyright © 2016. All rights reserved.