Package com.epicbot.api.shared.entity
Interface ItemWidget
-
- All Superinterfaces:
Actionable
,Clickable
,Identifiable
,Interactable
,Item
,Nameable
,Renderable
,Validatable
public interface ItemWidget extends Item, Interactable
Items that are displayed via a widget like bank, inventory and equipment items.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.awt.Rectangle
getBounds()
Gets the bounding rectangle of this item.int
getHeight()
Gets the height of this item on screen.int
getIndex()
Gets the index of this item widget.default java.awt.Point
getLocation()
Gets the x and y-coordinate of this item on screen.int
getWidth()
Gets the width of this item on screen.int
getX()
Gets the x-coordinate of this item on screen.int
getY()
Gets the y-coordinate of this item on screen.-
Methods inherited from interface com.epicbot.api.shared.entity.details.Actionable
getActions, hasAction, hasActionMatch
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Clickable
click, click, hover
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Identifiable
getId
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Interactable
interact, interact, interact, interact, interact, interactMatch
-
Methods inherited from interface com.epicbot.api.shared.entity.Item
getGroundActions, getHighAlchemyPrice, getLowAlchemyPrice, getNotedId, getStackSize, getStorePrice, getUnNotedId, hasGroundAction, isMembers, isNoted, isStackable
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Renderable
contains, draw, getCentralPoint, getRandomPoint, getRealCentralPoint, isVisible
-
Methods inherited from interface com.epicbot.api.shared.entity.details.Validatable
isValid
-
-
-
-
Method Detail
-
getIndex
int getIndex()
Gets the index of this item widget.- Returns:
- int
-
getX
int getX()
Gets the x-coordinate of this item on screen.- Returns:
- int
-
getY
int getY()
Gets the y-coordinate of this item on screen.- Returns:
- int
-
getLocation
default java.awt.Point getLocation()
Gets the x and y-coordinate of this item on screen.- Returns:
Point
-
getWidth
int getWidth()
Gets the width of this item on screen.- Returns:
- int
-
getHeight
int getHeight()
Gets the height of this item on screen.- Returns:
- int
-
getBounds
default java.awt.Rectangle getBounds()
Gets the bounding rectangle of this item.- Returns:
Rectangle
, if not visible, this returns a Rectangle with its properties set to -1
-
-