Record Class ScriptInfo
java.lang.Object
java.lang.Record
com.botwithus.bot.api.script.ScriptInfo
- Record Components:
name- display name fromScriptManifestversion- version string, or"?"if unknown- author, or"unknown"if not declareddescription- description, or empty stringcategory- script category, orScriptCategory.UNCATEGORIZEDrunning- whether the script is currently executingclassName- fully qualified class name of the script implementation
-
Constructor Summary
ConstructorsConstructorDescriptionScriptInfo(String name, String version, String author, String description, ScriptCategory category, boolean running, String className) Creates an instance of aScriptInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.category()Returns the value of thecategoryrecord component.Returns the value of theclassNamerecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.booleanrunning()Returns the value of therunningrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ScriptInfo
public ScriptInfo(String name, String version, String author, String description, ScriptCategory category, boolean running, String className) Creates an instance of aScriptInforecord class.- Parameters:
name- the value for thenamerecord componentversion- the value for theversionrecord componentauthor- the value for theauthorrecord componentdescription- the value for thedescriptionrecord componentcategory- the value for thecategoryrecord componentrunning- the value for therunningrecord componentclassName- the value for theclassNamerecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
-
version
-
author
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
category
-
running
-
className
-