Class SequenceManager

java.lang.Object
com.blamejared.crafttweaker.api.util.sequence.SequenceManager

public class SequenceManager extends Object
Manages Sequences, handles adding, removing and ticking.
  • Constructor Details

    • SequenceManager

      public SequenceManager()
  • Method Details

    • addSequence

      public static void addSequence(SequenceType type, Sequence<?,?> sequence)
      Adds a new Sequence.
      Parameters:
      type - The type of Sequence to add.
      sequence - The sequence to add.
    • removeSequence

      public static void removeSequence(SequenceType type, Sequence<?,?> sequence)
      Removes a sequence.
      Parameters:
      type - The type of Sequence to remove.
      sequence - The sequence to remove.
    • tick

      public static void tick(SequenceType type)
      Tick all sequences for the given type.
      Parameters:
      type - The type to tick for.
    • getSequences

      public static Map<SequenceType,List<Sequence<?,?>>> getSequences()
      Gets a view of the Sequences.
      Returns:
      A map of sequences,
    • clearSequences

      public static void clearSequences()
      Clears the sequences.
    • clearSequences

      public static void clearSequences(SequenceType type)
      Clears the sequences for the given SequenceType.