Package com.soulfiremc.server.script.api
Class ScriptAPI
java.lang.Object
com.soulfiremc.server.script.api.ScriptAPI
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ScriptEventAPI
final ScriptInstanceAPI
final ScriptInfoAPI
-
Constructor Summary
ConstructorsConstructorDescriptionScriptAPI
(org.graalvm.polyglot.Context context, ScriptManager.Script script, InstanceManager instanceManager) -
Method Summary
Modifier and TypeMethodDescriptionorg.graalvm.polyglot.Value
componentFromLegacyAmpersand
(String legacy) org.graalvm.polyglot.Value
componentFromLegacySection
(String legacy) org.graalvm.polyglot.Value
componentFromPlain
(String plain) componentToLegacyAmpersand
(net.kyori.adventure.text.Component component) componentToLegacySection
(net.kyori.adventure.text.Component component) componentToPlain
(net.kyori.adventure.text.Component component)
-
Field Details
-
script
-
event
-
instance
-
-
Constructor Details
-
ScriptAPI
public ScriptAPI(org.graalvm.polyglot.Context context, ScriptManager.Script script, InstanceManager instanceManager)
-
-
Method Details
-
componentToLegacySection
-
componentFromLegacySection
-
componentToLegacyAmpersand
-
componentFromLegacyAmpersand
-
componentToPlain
-
componentFromPlain
-