Class ScriptControllerImpl
- java.lang.Object
-
- me.lucko.scriptcontroller.internal.ScriptControllerImpl
-
- All Implemented Interfaces:
ScriptController
public final class ScriptControllerImpl extends Object implements ScriptController
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ScriptController.Builder
builder()
Deprecated.static EnvironmentSettings
defaultSettings()
Deprecated.Collection<ScriptEnvironment>
getEnvironments()
Gets theScriptEnvironment
s being processed by the controllerstatic EnvironmentSettings.Builder
newSettingsBuilder()
Deprecated.ScriptEnvironment
setupNewEnvironment(Path loadDirectory, EnvironmentSettings settings)
Sets up a newScriptEnvironment
in the given load directory.void
shutdown()
Shuts down this script controller-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface me.lucko.scriptcontroller.ScriptController
setupNewEnvironment
-
-
-
-
Method Detail
-
builder
@Deprecated public static ScriptController.Builder builder()
Deprecated.Description copied from interface:ScriptController
Creates a newScriptController.Builder
using the internal implementation.- Returns:
- the builder
-
defaultSettings
@Deprecated public static EnvironmentSettings defaultSettings()
Deprecated.
-
newSettingsBuilder
@Deprecated public static EnvironmentSettings.Builder newSettingsBuilder()
Deprecated.
-
getEnvironments
public Collection<ScriptEnvironment> getEnvironments()
Description copied from interface:ScriptController
Gets theScriptEnvironment
s being processed by the controller- Specified by:
getEnvironments
in interfaceScriptController
- Returns:
- the environments
-
setupNewEnvironment
public ScriptEnvironment setupNewEnvironment(Path loadDirectory, EnvironmentSettings settings)
Description copied from interface:ScriptController
Sets up a newScriptEnvironment
in the given load directory.- Specified by:
setupNewEnvironment
in interfaceScriptController
- Parameters:
loadDirectory
- the directorysettings
- the environment settings- Returns:
- the new environment
-
shutdown
public void shutdown()
Description copied from interface:ScriptController
Shuts down this script controller- Specified by:
shutdown
in interfaceScriptController
-
-