Record Class ScriptManager.RuntimeComponents
java.lang.Object
java.lang.Record
com.soulfiremc.server.script.ScriptManager.RuntimeComponents
- Enclosing class:
ScriptManager
-
Constructor Summary
ConstructorsConstructorDescriptionRuntimeComponents(org.graalvm.polyglot.Context context, ScriptAPI scriptAPI) Creates an instance of aRuntimeComponentsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.graalvm.polyglot.Contextcontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidrunInContext(Runnable runnable) Returns the value of thescriptAPIrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RuntimeComponents
Creates an instance of aRuntimeComponentsrecord class.- Parameters:
context- the value for thecontextrecord componentscriptAPI- the value for thescriptAPIrecord component
-
-
Method Details
-
runInContext
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
context
public org.graalvm.polyglot.Context context()Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
scriptAPI
Returns the value of thescriptAPIrecord component.- Returns:
- the value of the
scriptAPIrecord component
-