public abstract class LoopScript extends Script
loop()
, otherwise this will run for ever.
This script has one ScriptTask
that calls the loop()
function.
The amount to sleep is determined by the result of loop()
. Therefore Script.setIterationDelay(int)
is set to 0.
Constructor and Description |
---|
LoopScript() |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
loop()
The script loop function.
|
addTask, antiRandom, getAPIContext, getIterationDelay, getLogger, getManifest, getRandomHandler, getScriptProfile, getScriptType, getSettingsDirectory, getState, getTaskContainer, init, isPaused, isRunning, isStopping, onBreak, onChatMessage, onGameTick, onPaint, onPause, onResume, onStart, onStop, pause, removeTask, removeTask, resume, setIterationDelay, startBreak, stop, submitTask