Class 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.
    • Method Detail

      • 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 to ChatScreen.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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object