Package rsb.wrappers

Class RSGroundItem

java.lang.Object
rsb.methods.MethodProvider
rsb.wrappers.RSGroundItem
All Implemented Interfaces:
Clickable, Clickable07, Positionable

public class RSGroundItem extends MethodProvider implements Clickable07, Positionable
Represents an item on a tile.
  • Constructor Details

  • Method Details

    • getModel

      public RSModel getModel()
      Gets the top model on the tile of this ground item.
      Returns:
      The top model on the tile of this ground item.
    • doAction

      public boolean doAction(String action)
      Performs the given action on this RSGroundItem.
      Specified by:
      doAction in interface Clickable
      Parameters:
      action - The menu action to click.
      Returns:
      true if the action was clicked; otherwise false.
    • doAction

      public boolean doAction(String action, String option)
      Performs the given action on this RSGroundItem.
      Specified by:
      doAction in interface Clickable
      Parameters:
      action - The menu action to click.
      option - The option of the menu action to click.
      Returns:
      true if the action was clicked; otherwise false.
    • getItem

      public RSItem getItem()
    • getLocation

      public WalkerTile getLocation()
      Description copied from interface: Positionable
      Gets the tile position of the entity as provided by the client
      Specified by:
      getLocation in interface Positionable
      Returns:
      the tile position of the entity if it exists, else null
    • isOnScreen

      public boolean isOnScreen()
    • turnTo

      public boolean turnTo()
      Description copied from interface: Positionable
      Turns the camera to face the entity
      Specified by:
      turnTo in interface Positionable
      Returns:
      True if the camera has been turned to face the entity
    • doHover

      public boolean doHover()
      Specified by:
      doHover in interface Clickable
    • doClick

      public boolean doClick()
      Specified by:
      doClick in interface Clickable
    • doClick

      public boolean doClick(boolean leftClick)
      Specified by:
      doClick in interface Clickable
    • isClickable

      public boolean isClickable()
      Specified by:
      isClickable in interface Clickable07