GroundItem

Represents an item on the ground

See also

Constructors

Link copied to clipboard
constructor(groundItem: RSGroundItem)

Types

Link copied to clipboard

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Moves the camera to a position where the given entity or position is in view.
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 distance(): Int
Determines the distance between this entity/tile and the local player
Link copied to clipboard
open fun distanceTo(position: Positionable): Int
Determines the distance between this entity/tile and the given entity/tile
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
open fun getDespawnTicks(): Int
Link copied to clipboard
open fun getId(): Int
Gets the ID of the entity
Link copied to clipboard
open fun getLegacyRSGroundItem(): RSGroundItem
Link copied to clipboard
open fun getModel(): Optional<Model>
Gets the entity model
Link copied to clipboard
open fun getName(): String
Determines the name of the entity of the object this method is called on.
Link copied to clipboard
Link copied to clipboard
open fun getRevealTick(): Int
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.
Link copied to clipboard
open fun getTile(): WorldTile
Gets the WorldTile of this entity/position
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 interact(action: String): Boolean
open fun interact(action: String, interruptCondition: BooleanSupplier): Boolean
Attempts to interact with the entity using the given action.
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
open fun toString(): String