ISequenceTask<T : Object, U : Object>
Link to isequencetaskt--object-u--object
A task in a Sequence<T,U>.
导入类
Link to 导入类
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.sequence.task.ISequenceTask;
使用方式
Link to 使用方式
Name: isComplete
Checks if this task is complete.
Return Type: boolean
ZenScript CopyISequenceTask.isComplete(actor as T, context as SequenceContext<T,U>) as boolean
参数 | 类型 | 描述 |
---|---|---|
参数 actor | 类型 T | 描述 The actor that is being sequenced. |
参数 上下文: | 类型 SequenceContext<T,U> | 描述 The context for the sequence. |
Name: tick
Ticks this task.
A check to isComplete
should be done before ticking!.
ZenScript Copy// ISequenceTask.tick(actor as T, context as SequenceContext<T,U>)
new SleepTask(20).tick(level, new crafttweaker.api.util.sequence.SequenceContext(sequence, new crafttweaker.api.data.MapData()));
参数 | 类型 | 描述 |
---|---|---|
参数 actor | 类型 T | 描述 The actor that is being sequenced. |
参数 上下文: | 类型 SequenceContext<T,U> | 描述 The context for the sequence. |