Item

public interface Item implements Clickable, Named, Identifiable, Indexable, Stackable, ItemDefinable, Actionable

Represents an item, such as an inventory item.

See also

Functions

click
Link copied to clipboard
abstract boolean click()
Interacts with the entity, with the first action available.
abstract boolean click(String action)
Interacts with the entity, given a specific action.
getActions
Link copied to clipboard
List<StringgetActions()
Gets the available actions for the entity, usually dependent on their definition.
getBounds
Link copied to clipboard
abstract Optional<RectanglegetBounds()
Gets the bounds of the area
getDefinition
Link copied to clipboard
abstract ItemDefinition getDefinition()
Gets the ItemDefinition for this item, which contains more details about the item.
getId
Link copied to clipboard
abstract int getId()
Gets the ID of the entity
getIndex
Link copied to clipboard
abstract int getIndex()
Gets the index of the entity.
getName
Link copied to clipboard
String getName()
Gets the name of the Item.
getStack
Link copied to clipboard
abstract int getStack()
Gets the stack of this item, which is how many of the item is occupying the item space.
hover
Link copied to clipboard
abstract boolean hover()
Moves the mouse to a human-randomized point on the entity.
boolean hover(String action)
Hovers the specified action on this entity.
hoverMenu
Link copied to clipboard
boolean hoverMenu(String action)
Hovers the specified action on this entity, always right-clicking and hovering over the menu
isHovering
Link copied to clipboard
boolean isHovering()
Checks if the mouse is currently over this entity
isVisible
Link copied to clipboard
abstract boolean isVisible()
Determines if the entity is on the screen and able to be clicked.
lookupPrice
Link copied to clipboard
Optional<IntegerlookupPrice()
Looks up the price of the given itemId.

Inheritors

EquipmentItem
Link copied to clipboard
InventoryItem
Link copied to clipboard
WidgetItem
Link copied to clipboard
OtherItem
Link copied to clipboard