Interface Clickable
-
- All Superinterfaces:
Renderable
- All Known Subinterfaces:
Actor
,GameEntity
,GroundItem
,Interactable
,ItemWidget
,NPC
,Player
,SceneObject
,WidgetChild
- All Known Implementing Classes:
Tile
public interface Clickable extends Renderable
An entity that can be clicked on.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
click()
Left mouse click on the entity.boolean
click(boolean rightClick)
Click on the entity.boolean
hover()
Hover on the entity.-
Methods inherited from interface com.epicbot.api.shared.entity.details.Renderable
contains, draw, getCentralPoint, getRandomPoint, getRealCentralPoint, isVisible
-
-
-
-
Method Detail
-
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
-
-