Tribot SDK
Toggle table of contents
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Tribot SDK
script-sdk
/
org.tribot.script.sdk.types
/
OtherItem
Other
Item
open
class
OtherItem
:
Item
Not public-facing. Used as the "generic" Item class for Items with no special methods.
Members
Constructors
Other
Item
Link copied to clipboard
constructor
(
item
:
RSItem
)
Properties
definition
Link copied to clipboard
open
val
definition
:
ItemDefinition
Functions
click
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.
equals
Link copied to clipboard
open
fun
equals
(
o
:
Any
)
:
Boolean
get
Actions
Link copied to clipboard
open
fun
getActions
(
)
:
List
<
String
>
Gets the available actions for the entity, usually dependent on their definition.
get
Bounds
Link copied to clipboard
open
fun
getBounds
(
)
:
Optional
<
Rectangle
>
Gets the bounds of the area
get
Id
Link copied to clipboard
open
fun
getId
(
)
:
Int
Gets the ID of the entity
get
Index
Link copied to clipboard
open
fun
getIndex
(
)
:
Int
Gets the index of the entity.
get
Legacy
Item
Link copied to clipboard
open
fun
getLegacyItem
(
)
:
RSItem
get
Name
Link copied to clipboard
open
fun
getName
(
)
:
String
Gets the name of the Item.
get
Stack
Link copied to clipboard
open
fun
getStack
(
)
:
Int
Gets the stack of this item, which is how many of the item is occupying the item space.
hash
Code
Link copied to clipboard
open
fun
hashCode
(
)
:
Int
hover
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.
hover
Menu
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
is
Hovering
Link copied to clipboard
open
fun
isHovering
(
)
:
Boolean
Checks if the mouse is currently over this entity
is
Visible
Link copied to clipboard
open
fun
isVisible
(
)
:
Boolean
Determines if the entity is on the screen and able to be clicked.
lookup
Price
Link copied to clipboard
open
fun
lookupPrice
(
)
:
Optional
<
Integer
>
Looks up the price of the given itemId.
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String