Class ScriptStateStore
java.lang.Object
com.soulfiremc.server.script.ScriptStateStore
Per-script state container with typed key access.
State is scoped to the ReactiveScriptContext and is automatically
cleaned up when the script deactivates (context is GC'd).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetOrCreate(String key, Supplier<T> factory) Gets an existing value or creates a new one using the factory.
-
Constructor Details
-
ScriptStateStore
public ScriptStateStore()
-
-
Method Details
-
getOrCreate
-