click

boolean click(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.

Return

If the entity was successfully clicked

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.

Return

true if the entity was clicked, false otherwise