Class SequenceType

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

@ZenRegister public final class SequenceType extends Object
Represents the type of 'actor' a Sequence acts on and is used to ensure that Sequences are ticked correctly.

Some examples are a Level or a LivingEntity (which is not yet implemented).

Mods adding custom sequenceable actors (really anything that can be ticked) should make their own SequenceType and expose it to ZenScript.

DocParam:
this SequenceType.SERVER_THREAD_LEVEL
  • Field Details

    • SERVER_THREAD_LEVEL

      public static final SequenceType SERVER_THREAD_LEVEL
      The type of the SERVER_THREAD_LEVEL sequence which is only ticked on the server thread.
    • CLIENT_THREAD_LEVEL

      public static final SequenceType CLIENT_THREAD_LEVEL
      The type of the CLIENT_THREAD_LEVEL sequence which is only ticked on the server thread.
  • Constructor Details

    • SequenceType

      public SequenceType(String name)
      The name of the type.
      Parameters:
      name - The name of the type.
  • Method Details

    • name

      public String name()
      Gets the name of the sequence type.
      Returns:
      The name of the sequence type.