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 Summary
Modifier and TypeMethodDescriptionvoidaddBuilder(@NotNull String name, @NotNull ScriptBuilder script) Registers a new script builder.@Nullable AnimationScriptParses a raw script string into anAnimationScript.
-
Method Details
-
build
Parses a raw script string into anAnimationScript.- Parameters:
script- the raw script string- Returns:
- the parsed script, or null if parsing failed
- Since:
- 1.15.2
-
addBuilder
Registers a new script builder.- Parameters:
name- the name of the parser/builderscript- the script builder instance- Since:
- 1.15.2
-