Package org.tribot.script.sdk
Class ChatScreen.Config
- java.lang.Object
-
- org.tribot.script.sdk.ChatScreen.Config
-
- Enclosing class:
- ChatScreen
public static final class ChatScreen.Config extends java.lang.ObjectThe config for the chat handler. This provides default values so you don't have to configure everything, or even anything at all unless you want to change something.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChatScreen.Config.ConfigBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChatScreen.Config.ConfigBuilderbuilder()booleanequals(java.lang.Object o)java.util.function.IntSuppliergetTimeout()The timeout for a single call toChatScreen.handle(String...)(or any of the overloaded methods).inthashCode()booleanisHoldSpaceForContinue()If the space bar should be held consistently and not let go while click continue screens are open, until dialog is over or an option screen comes upbooleanisPressSpaceForContinue()If the space bar should be pressed each time the click continue screen is openbooleanisUseKeysForOptions()If the number keys should be used to select an option rather than clickingjava.lang.StringtoString()
-
-
-
Method Detail
-
builder
public static ChatScreen.Config.ConfigBuilder builder()
-
isUseKeysForOptions
public boolean isUseKeysForOptions()
If the number keys should be used to select an option rather than clicking
-
isPressSpaceForContinue
public boolean isPressSpaceForContinue()
If the space bar should be pressed each time the click continue screen is open
-
isHoldSpaceForContinue
public boolean isHoldSpaceForContinue()
If the space bar should be held consistently and not let go while click continue screens are open, until dialog is over or an option screen comes up
-
getTimeout
public java.util.function.IntSupplier getTimeout()
The timeout for a single call toChatScreen.handle(String...)(or any of the overloaded methods). This supplier should provide the number of milliseconds. Ex.() -> 50000for 50 seconds.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-