Class Dialogue.Option

java.lang.Object
com.valhalla.sdk.api.methods.Dialogue.Option
Enclosing class:
Dialogue

public static final class Dialogue.Option extends Object
One visible choice in an option menu.
  • Method Details

    • getIndex

      public int getIndex()
      Returns 1-based position in the menu.
      Returns:
      1-based position in the menu
    • getText

      public String getText()
      Returns the option text without colour or formatting tags.
      Returns:
      the option text without colour or formatting tags
    • getSnapshot

      public WidgetSnapshot getSnapshot()
      Returns the interface component for this option.
      Returns:
      the interface component for this option
    • toString

      public String toString()
      Overrides:
      toString in class Object