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.Object
The 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 class
ChatScreen.Config.ConfigBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChatScreen.Config.ConfigBuilder
builder()
boolean
equals(java.lang.Object o)
java.util.function.IntSupplier
getTimeout()
The timeout for a single call toChatScreen.handle(String...)
(or any of the overloaded methods).int
hashCode()
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 upboolean
isPressSpaceForContinue()
If the space bar should be pressed each time the click continue screen is openboolean
isUseKeysForOptions()
If the number keys should be used to select an option rather than clickingjava.lang.String
toString()
-
-
-
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.() -> 50000
for 50 seconds.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-