SleepUntilTask
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.sequence.task.type.SleepUntilTask;Description
A task that will sleep until its condition is met.Implements
SleepUntilTask<T, U>
implements the following interfaces:
ISequenceTask<T, U>
Constructors
new<T, U>(condition as function(t as T) as bool)
// new SleepUntilTask<T,U>(condition as function(t as T) as bool);new SleepUntilTask<T, U>(myPredicate);Parameters:
condition: function(t as T) as bool Type: function(t as T) as bool new<T, U>(condition as BiPredicate<T, SequenceContext<T, U>>)
new SleepUntilTask<T, U>(myBiPredicate);Parameters:
condition: BiPredicate<T, SequenceContext<T, U>> Type: BiPredicate<T, SequenceContext<T, U>>