WidgetItem

open class WidgetItem : Item

Represents an item displayed in a widget

See also

Constructors

Link copied to clipboard
constructor(id: Int, stack: Int, index: Int, owner: Widget, itemTable: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
val id: Int
Link copied to clipboard
val index: Int
Link copied to clipboard
val stack: Int

Functions

Link copied to clipboard
open fun click(): Boolean
Interacts with the entity, with the first action available.
open fun click(action: String): Boolean
Interacts with the entity, given a specific action.
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun getActions(): List<String>
Gets the available actions for the entity, usually dependent on their definition.
Link copied to clipboard
Gets the bounds of the area
Link copied to clipboard
open fun getName(): String
Gets the name of the Item.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun hover(action: String): Boolean
Hovers the specified action on this entity.
open fun hover(): Boolean
Moves the mouse to a human-randomized point on the entity.
Link copied to clipboard
open fun hoverMenu(action: String): Boolean
Hovers the specified action on this entity, always right-clicking and hovering over the menu
Link copied to clipboard
open fun isHovering(): Boolean
Checks if the mouse is currently over this entity
Link copied to clipboard
open fun isVisible(): Boolean
Determines if the entity is on the screen and able to be clicked.
Link copied to clipboard
Looks up the price of the given itemId.
Link copied to clipboard
open fun toString(): String