Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

SleepTask

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.SleepTask;

Description

A task that will sleep for the given amount of ticks.

Implements

SleepTask<T, U> implements the following interfaces:

ISequenceTask<T, U>

Constructors

new<T, U>(sleepTime as long)
script.zs
// new SleepTask<T,U>(sleepTime as long);
new SleepTask<T, U>(myLong);

Parameters:

sleepTime Type: long

Members