EquipmentItem

public class EquipmentItem implements Item

Represents an equipped item

See also

Constructors

EquipmentItem
Link copied to clipboard
void EquipmentItem(RSItem item)

Functions

click
Link copied to clipboard
boolean click()
Interacts with the entity, with the first action available.
boolean click(String action)
Interacts with the entity, given a specific action.
equals
Link copied to clipboard
boolean equals(Object o)
getActions
Link copied to clipboard
List<StringgetActions()
Gets the available actions for the entity, usually dependent on their definition.
getBounds
Link copied to clipboard
Optional<RectanglegetBounds()
Gets the bounds of the area
getDefinition
Link copied to clipboard
ItemDefinition getDefinition()
Gets the ItemDefinition for this item, which contains more details about the item.
getId
Link copied to clipboard
int getId()
Gets the ID of the entity
getIndex
Link copied to clipboard
int getIndex()
Gets the index of the entity.
getName
Link copied to clipboard
String getName()
Gets the name of the Item.
getSlot
Link copied to clipboard
Equipment.Slot getSlot()
Gets the equipment slot of this item
getStack
Link copied to clipboard
int getStack()
Gets the stack of this item, which is how many of the item is occupying the item space.
hashCode
Link copied to clipboard
int hashCode()
hover
Link copied to clipboard
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
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.
remove
Link copied to clipboard
boolean remove()
toString
Link copied to clipboard
String toString()

Properties

definition
Link copied to clipboard
private ItemDefinition definition