HomeCommandsExamplesGetting Started With ScriptsGlobal Keywords
BracketDumpersBracketHandlersBracketValidatorsResourceLocationBracketHandler

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.

script.zs
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)
script.zs
// new SleepUntilTask<T,U>(condition as function(t as T) as bool);
new SleepUntilTask<T, U>(myPredicate);

Parameters:

condition Type: function(t as T) as bool
new<T, U>(condition as BiPredicate<T, SequenceContext<T, U>>)
script.zs
// new SleepUntilTask<T,U>(condition as BiPredicate<T, SequenceContext<T, U>>);
new SleepUntilTask<T, U>(myBiPredicate);

Parameters:

condition Type: BiPredicate<T, SequenceContext<T, U>>

Members