java.lang.Object
com.blamejared.crafttweaker.api.util.sequence.task.type.SleepTask<T,U>
All Implemented Interfaces:
ISequenceTask<T,U>

@ZenRegister public class SleepTask<T,U> extends Object implements ISequenceTask<T,U>
A task that will sleep for the given amount of ticks.
DocParam:
this new SleepTask(20)
  • Constructor Details

    • SleepTask

      public SleepTask(long sleepTime)
  • Method Details

    • tick

      public void tick(T actor, SequenceContext<T,U> data)
      Description copied from interface: ISequenceTask
      Ticks this task.

      A check to isComplete should be done before ticking!.

      Specified by:
      tick in interface ISequenceTask<T,U>
      Parameters:
      actor - The actor that is being sequenced.
      data - The context for the sequence.
    • isComplete

      public boolean isComplete(T actor, SequenceContext<T,U> data)
      Description copied from interface: ISequenceTask
      Checks if this task is complete.
      Specified by:
      isComplete in interface ISequenceTask<T,U>
      Parameters:
      actor - The actor that is being sequenced.
      data - The context for the sequence.