Class Sequence<T,U>

java.lang.Object
com.blamejared.crafttweaker.api.util.sequence.Sequence<T,U>
Type Parameters:
T -
U -

@ZenRegister public class Sequence<T,U> extends Object
A sequence is a series of tasks that run after each other when the actor ticks.

For example, when a level ticks.

  • Constructor Details

  • 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

      public SequenceContext<T,U> getContext()
      Gets the context for this sequence.
      Returns:
      The context for this sequence.