Interface AnimationScript

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

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

  • Method Details

    • accept

      void accept(@NotNull @NotNull ScriptSource renderSource)
      Specified by:
      accept in interface Consumer<ScriptSource>
    • 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<ScriptSource> source)
      Creates script
      Parameters:
      source - consumer
      Returns:
      script
    • of

      @NotNull static @NotNull AnimationScript of(boolean isSync, @NotNull @NotNull Consumer<ScriptSource> 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