Class Sequence<T,U>
java.lang.Object
com.blamejared.crafttweaker.api.util.sequence.Sequence<T,U>
- Type Parameters:
T-U-
A sequence is a series of tasks that run after each other when the actor ticks.
For example, when a level ticks.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Sequence
-
-
Method Details
-
tick
public void tick()Ticks this sequence. -
stop
public void stop()Stops this sequence, subsequent tasks will not be ran. -
isStopped
public boolean isStopped()Checks if this sequence is stopped or not.- Returns:
- true if stopped, false otherwise.
-
isComplete
public boolean isComplete()Checks if this sequence is complete.- Returns:
- true if complete, false otherwise.
-
getContext
Gets the context for this sequence.- Returns:
- The context for this sequence.
-