Record Class LaunchOptions
java.lang.Object
java.lang.Record
com.botwithus.bot.api.script.LaunchOptions
- Record Components:
characterIndex- for a Steam account, which character to play;NO_CHARACTERotherwise
Options for
ClientLauncher.launch(String, LaunchOptions).-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNo particular character: the account's default. -
Constructor Summary
ConstructorsConstructorDescriptionLaunchOptions(int characterIndex) Creates an instance of aLaunchOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecharacterIndexrecord component.static LaunchOptionsdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NO_CHARACTER
public static final int NO_CHARACTERNo particular character: the account's default.- See Also:
-
-
Constructor Details
-
LaunchOptions
public LaunchOptions(int characterIndex) Creates an instance of aLaunchOptionsrecord class.- Parameters:
characterIndex- the value for thecharacterIndexrecord component
-
-
Method Details
-
defaults
- Returns:
- options with no particular character
-
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 with thecomparemethod from their corresponding wrapper classes. -
characterIndex
public int characterIndex()Returns the value of thecharacterIndexrecord component.- Returns:
- the value of the
characterIndexrecord component
-