Interface AnimationScript

All Superinterfaces:
Consumer<Tracker>
All Known Implementing Classes:
TimeScript

public interface AnimationScript extends Consumer<Tracker>
Animation script
  • Field Details

  • Method Details

    • accept

      void accept(@NotNull @NotNull Tracker tracker)
      Specified by:
      accept in interface Consumer<Tracker>
    • isSync

      boolean isSync()
      Checks this script should be called in tick thread
      Returns:
      requires tick thread
    • time

      @NotNull default @NotNull TimeScript time(float time)
      Creates a timed script
      Parameters:
      time - time
      Returns:
      timed script
    • of

      @NotNull static @NotNull AnimationScript of(@NotNull @NotNull Consumer<Tracker> source)
      Creates script
      Parameters:
      source - consumer
      Returns:
      script
    • of

      @NotNull static @NotNull AnimationScript of(boolean isSync, @NotNull @NotNull Consumer<Tracker> source)
      Creates script
      Parameters:
      isSync - should be called in tick thread
      source - consumer
      Returns:
      script
    • of

      @NotNull static @NotNull AnimationScript of(@NotNull @NotNull List<AnimationScript> scriptList)
      Sums a script list to one
      Parameters:
      scriptList - list of a script
      Returns:
      merged script