Interface ISequenceTask<T,U>
- All Known Implementing Classes:
InstantTask,SleepTask,SleepUntilTask
A task in a
Sequence.- DocParam:
- this new SleepTask(20)
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisComplete(T actor, SequenceContext<T, U> context) Checks if this task is complete.voidtick(T actor, SequenceContext<T, U> context) Ticks this task.
-
Method Details
-
tick
Ticks this task.A check to
isCompleteshould be done before ticking!.- Parameters:
actor- The actor that is being sequenced.context- The context for the sequence.- DocParam:
- actor level, context new crafttweaker.api.util.sequence.SequenceContext(sequence, new crafttweaker.api.data.MapData())
-
isComplete
Checks if this task is complete.- Parameters:
actor- The actor that is being sequenced.context- The context for the sequence.- DocParam:
- actor level, data new crafttweaker.api.util.sequence.SequenceContext(sequence, new crafttweaker.api.data.MapData())
-