InstantTask
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.InstantTask;
Description
A task that will run immediately.Implements
InstantTask<T, U>
implements the following interfaces:
ISequenceTask<T, U>
Constructors
new<T, U>(actorConsumer as function(t as T) as void)
// new InstantTask<T,U>(actorConsumer as function(t as T) as void);new InstantTask<T, U>(myConsumer);
Parameters:
actorConsumer: function(t as T) as void
Type: function(t as T) as void
new<T, U>(actorConsumer as BiConsumer<T, SequenceContext<T, U>>)
new InstantTask<T, U>(myBiConsumer);
Parameters:
actorConsumer: BiConsumer<T, SequenceContext<T, U>>
Type: BiConsumer<T, SequenceContext<T, U>>