Package com.epicbot.api.shared.entity
Interface ItemWidget
- All Superinterfaces:
Actionable,Clickable,Identifiable,Interactable,Item,Nameable,Renderable,Validatable
Items that are displayed via a widget like bank, inventory and equipment items.
-
Method Summary
Modifier and TypeMethodDescriptiondefault RectangleGets the bounding rectangle of this item.intGets the height of this item on screen.intgetIndex()Gets the index of this item widget.default PointGets the x and y-coordinate of this item on screen.intgetWidth()Gets the width of this item on screen.intgetX()Gets the x-coordinate of this item on screen.intgetY()Gets the y-coordinate of this item on screen.Methods inherited from interface com.epicbot.api.shared.entity.details.Actionable
getActions, hasAction, hasActionMatchMethods inherited from interface com.epicbot.api.shared.entity.details.Clickable
click, click, hoverMethods inherited from interface com.epicbot.api.shared.entity.details.Identifiable
getIdMethods inherited from interface com.epicbot.api.shared.entity.details.Interactable
interact, interact, interact, interact, interactMatchMethods inherited from interface com.epicbot.api.shared.entity.Item
getGroundActions, getHighAlchemyPrice, getLowAlchemyPrice, getNotedId, getStackSize, getStorePrice, getUnNotedId, hasGroundAction, isMembers, isNoted, isStackable, isTradableMethods inherited from interface com.epicbot.api.shared.entity.details.Renderable
contains, draw, draw, draw, getCentralPoint, getRandomPoint, getRealCentralPoint, isVisibleMethods inherited from interface com.epicbot.api.shared.entity.details.Validatable
isValid
-
Method Details
-
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
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
Gets the bounding rectangle of this item.- Returns:
Rectangle, if not visible, this returns a Rectangle with its properties set to -1
-