Interface ScriptManager


public interface ScriptManager
Manages the parsing and registration of animation scripts.

This manager allows for the creation of custom script logic that can be embedded within animations.

Since:
1.15.2
  • Method Details

    • build

      @Nullable @Nullable AnimationScript build(@NotNull @NotNull String script)
      Parses a raw script string into an AnimationScript.
      Parameters:
      script - the raw script string
      Returns:
      the parsed script, or null if parsing failed
      Since:
      1.15.2
    • addBuilder

      void addBuilder(@NotNull @NotNull String name, @NotNull @NotNull ScriptBuilder script)
      Registers a new script builder.
      Parameters:
      name - the name of the parser/builder
      script - the script builder instance
      Since:
      1.15.2