Record Class ScriptInstanceAPI
java.lang.Object
java.lang.Record
com.soulfiremc.server.script.api.ScriptInstanceAPI
-
Constructor Summary
ConstructorsConstructorDescriptionScriptInstanceAPI(InstanceManager instanceManager) Creates an instance of aScriptInstanceAPIrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getId()getName()final inthashCode()Returns a hash code value for this object.Returns the value of theinstanceManagerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScriptInstanceAPI
Creates an instance of aScriptInstanceAPIrecord class.- Parameters:
instanceManager- the value for theinstanceManagerrecord component
-
-
Method Details
-
getId
-
getName
-
getConnectedBots
-
getAttackState
-
getMetadata
-
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). -
instanceManager
Returns the value of theinstanceManagerrecord component.- Returns:
- the value of the
instanceManagerrecord component
-