Class SequenceContext<T,U>

java.lang.Object
com.blamejared.crafttweaker.api.util.sequence.SequenceContext<T,U>

@ZenRegister public class SequenceContext<T,U> extends Object
A SequenceContext provides more data to Sequences and allows a sequence to be stopped from inside a task.
  • Constructor Details

    • SequenceContext

      public SequenceContext(Sequence<T,U> sequence, U data)
  • Method Details

    • stop

      public void stop()
      Stop the sequence.
    • getData

      public U getData()
      Gets the data provided to the sequence.

      Note, this can never return null, if the data is null then it will throw an error.

      Returns:
      The data provided to the sequence or an error if null was provided.