Package com.epicbot.api.shared.methods
Interface IScriptAPI
-
public interface IScriptAPI
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Script
getScript()
java.util.Optional<java.io.File>
getScriptProfile()
Get the profile/settings this script was started with by the @Override script scheduler.ScriptType
getScriptType()
java.io.File
getSettingsDirectory()
Get the settings directory for this script.ScriptState
getState()
boolean
isInputEnabled()
boolean
isPaused()
boolean
isRunning()
boolean
isStopping()
org.apache.logging.log4j.Logger
logger()
void
pause(java.lang.String reason)
void
resume()
void
stop(java.lang.String reason)
-
-
-
Method Detail
-
getScript
Script getScript()
-
getState
ScriptState getState()
-
getScriptType
ScriptType getScriptType()
-
resume
void resume()
-
pause
void pause(java.lang.String reason)
-
stop
void stop(java.lang.String reason)
-
isRunning
boolean isRunning()
-
isPaused
boolean isPaused()
-
isStopping
boolean isStopping()
-
isInputEnabled
boolean isInputEnabled()
-
getSettingsDirectory
java.io.File getSettingsDirectory()
Get the settings directory for this script.- Returns:
- the directory, for example
C:/Users/John/EpicBot/ScriptSettings/Pro Agility/
-
getScriptProfile
java.util.Optional<java.io.File> getScriptProfile()
Get the profile/settings this script was started with by the @Override script scheduler.- Returns:
File
-
logger
org.apache.logging.log4j.Logger logger()
-
-