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, subList
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRemoveAll, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
public PluginHandler()
To access this handler, use this code:
TridentPluginHandler handler = Handler.plugins();
@InternalUseOnly public Plugin load(File pluginFile)
Plugins
public void enable(Plugin plugin)
Plugins
public void disable(Plugin plugin)
Plugins
protected List<Plugin> delegate()
delegate
in class com.google.common.collect.ForwardingList<Plugin>
public SelectableThread executor()
Plugins
Copyright © 2016. All rights reserved.