Interface Interactable

    • Method Detail

      • interact

        default boolean interact()
        Interacts with the entity by clicking on it. Convenience method for Clickable.click().
        Returns:
        true if the interaction succeeded, false otherwise
      • interact

        default boolean interact​(boolean rightClick)
        Interacts with the entity by clicking on it. Convenience method for Clickable.click(boolean).
        Parameters:
        rightClick - true to use the right mouse button to click
        Returns:
        true if the interaction succeeded, false otherwise
      • interact

        boolean interact​(java.lang.String action)
        Interacts with the entity.
        Parameters:
        action - the action to select
        Returns:
        true if the interaction succeeded, false otherwise
      • interact

        boolean interact​(java.lang.String action,
                         java.lang.String option)
        Interacts with the entity.
        Parameters:
        action - the action to select (e.g. Bank)
        option - the option to select (e.g. Bank booth)
        Returns:
        true if the interaction succeeded, false otherwise
      • interactMatch

        default boolean interactMatch​(java.lang.String actionRegex)
        Interacts with the entity using an action matching the given regular expression.
        Parameters:
        actionRegex - the action regex
        Returns:
        true if the interaction succeeded, false otherwise
      • interact

        boolean interact​(int opcode)
        Interacts with the entity using the specified menu action opcode.
        Parameters:
        opcode - the menu action op code (e.g. 1005 for "Walk here")
        Returns:
        true if the interaction succeeded, false otherwise