Record Class ScriptBotAPI
java.lang.Object
java.lang.Record
com.soulfiremc.server.script.api.ScriptBotAPI
-
Constructor Summary
ConstructorsConstructorDescriptionScriptBotAPI(BotConnection connection) Creates an instance of aScriptBotAPIrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionrecord component.final booleanIndicates whether some other object is "equal to" this one.getId()getName()final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScriptBotAPI
Creates an instance of aScriptBotAPIrecord class.- Parameters:
connection- the value for theconnectionrecord component
-
-
Method Details
-
getId
-
getName
-
getMovement
-
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). -
connection
Returns the value of theconnectionrecord component.- Returns:
- the value of the
connectionrecord component
-