Interface Clickable
- All Superinterfaces:
Renderable
- All Known Subinterfaces:
Actor,GameEntity,GroundItem,Interactable,ItemWidget,NPC,Player,SceneObject,WidgetChild
- All Known Implementing Classes:
Tile
An entity that can be clicked on.
-
Method Summary
Methods inherited from interface com.epicbot.api.shared.entity.details.Renderable
contains, draw, draw, draw, getCentralPoint, getRandomPoint, getRealCentralPoint, isVisible
-
Method Details
-
click
default boolean click()Left mouse click on the entity.- Returns:
- true if the click succeeded, false otherwise
-
click
boolean click(boolean rightClick) Click on the entity.- Parameters:
rightClick- true to use the right mouse button to click- Returns:
- true if the click succeeded, false otherwise
-
hover
boolean hover()Hover on the entity.- Returns:
- true if the hover succeeded, false otherwise
-