public class PluginExecutor<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
Plugins.| Constructor and Description |
|---|
PluginExecutor(@NotNull PluginModel<G,A,R> pluginModel,
@NotNull PluginParameters pluginParameters)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable BshRunnable<G,A,R> |
doRunPlugin(@NotNull Plugin<G,A,R> plugin,
@NotNull bsh.ConsoleInterface console,
@NotNull java.util.Map<java.lang.String,java.lang.Object> parameters)
Runs a plugin model.
|
int |
executePlugin(@NotNull java.lang.String plugin,
@NotNull java.lang.Iterable<java.lang.String> parameters)
Executes an editor plugin.
|
public PluginExecutor(@NotNull
@NotNull PluginModel<G,A,R> pluginModel,
@NotNull
@NotNull PluginParameters pluginParameters)
pluginModel - the plugin model to executepluginParameters - the parameters to pass to the pluginpublic int executePlugin(@NotNull
@NotNull java.lang.String plugin,
@NotNull
@NotNull java.lang.Iterable<java.lang.String> parameters)
plugin - the plugin name to executeparameters - the plugin parameters@Nullable public @Nullable BshRunnable<G,A,R> doRunPlugin(@NotNull @NotNull Plugin<G,A,R> plugin, @NotNull @NotNull bsh.ConsoleInterface console, @NotNull @NotNull java.util.Map<java.lang.String,java.lang.Object> parameters)
plugin - the plugin modelconsole - the console to useparameters - the parameters to pass to the plugin