Interface Clickable

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      boolean click()
      Interacts with the entity, with the first action available.
      boolean click​(java.lang.String action)
      Interacts with the entity, given a specific action.
      boolean hover()
      Moves the mouse to a human-randomized point on the entity.
      default boolean hover​(java.lang.String action)
      Hovers the specified action on this entity.
      default boolean hoverMenu​(java.lang.String action)
      Hovers the specified action on this entity, always right-clicking and hovering over the menu
      boolean isHovering()
      Checks if the mouse is currently over this entity
      boolean isVisible()
      Determines if the entity is on the screen and able to be clicked.
    • Method Detail

      • click

        boolean click()
        Interacts with the entity, with the first action available. This will generally perform a left-click, unless there is an action blocking in which case it will right click.
        Returns:
        true if the entity was clicked, false otherwise
      • click

        boolean click​(java.lang.String action)
        Interacts with the entity, given a specific action. The "action" string is the part of the option that comes first. For example, to attack an NPC, the action is "Attack". Case insensitive.
        Returns:
        If the entity was successfully clicked
      • hover

        boolean hover()
        Moves the mouse to a human-randomized point on the entity.
        Returns:
        If the mouse successfully moved over the entity
      • isVisible

        boolean isVisible()
        Determines if the entity is on the screen and able to be clicked.
      • isHovering

        boolean isHovering()
        Checks if the mouse is currently over this entity
        Returns:
        true if the mouse if over this entity, false otherwise
      • hover

        default boolean hover​(java.lang.String action)
        Hovers the specified action on this entity. This will right-click if it has to in order to hover the correct option.
        Parameters:
        action - the action to hover
        Returns:
        true if hovered successfully, false otherwise
      • hoverMenu

        default boolean hoverMenu​(java.lang.String action)
        Hovers the specified action on this entity, always right-clicking and hovering over the menu
        Parameters:
        action - the action to hover
        Returns:
        true if hovered successfully, false otherwise