Class GroundItem

    • Constructor Detail

      • GroundItem

        public GroundItem​(org.dreambot.internal.injector.interfaces.RSItemLayer itemLayer,
                          java.lang.Object itemReference)
        Note: This shouldn't be used by API users, it's an internal constructor.
    • Method Detail

      • getTile

        public Tile getTile()
        Description copied from interface: Locatable
        Gets tile of the object.
        Specified by:
        getTile in interface Locatable
        Overrides:
        getTile in class Entity
        Returns:
        the object tile.
      • setTile

        public void setTile​(Tile t)
      • getHeight

        public int getHeight()
      • getID

        public int getID()
        Description copied from interface: Identifiable
        Gets ID number of the given object.
        Returns:
        the ID number as integer.
      • getAmount

        public int getAmount()
      • getPlane

        public int getPlane()
      • getLocalX

        public int getLocalX()
      • getLocalY

        public int getLocalY()
      • getX

        public int getX()
        Description copied from interface: Locatable
        Gets X coordinate of the given object.
        Returns:
        the X coordinate of the object.
      • getY

        public int getY()
        Description copied from interface: Locatable
        Gets Y coordinate of the given object.
        Returns:
        the Y coordinate of the object.
      • getGridX

        public int getGridX()
        Description copied from interface: Locatable
        Gets grid (local) X coordinate of the given object.
        Returns:
        the grid X coordinate of the object.
      • getGridY

        public int getGridY()
        Description copied from interface: Locatable
        Gets grid (local) Y coordinate of the given object.
        Returns:
        the grid Y coordinate of the object.
      • getZ

        public int getZ()
        Description copied from interface: Locatable
        Gets Z coordinate of the given object.
        Returns:
        the Z coordinate of the object.
      • setZ

        public void setZ​(int z)
      • isOnScreen

        public boolean isOnScreen()
        Description copied from class: Entity
        Checks whether the entity is visible on the game screen
        Overrides:
        isOnScreen in class Entity
        Returns:
        true if the entity is visible
      • getBoundingBox

        public java.awt.Rectangle getBoundingBox()
        Description copied from class: Entity
        Gets the bounding box for the entity's model
        Overrides:
        getBoundingBox in class Entity
        Returns:
        bounding box of model
      • getName

        public java.lang.String getName()
        Description copied from class: Entity
        Gets the name of the entity
        Specified by:
        getName in interface Identifiable
        Specified by:
        getName in class Entity
        Returns:
        name of entity
      • hasAction

        public boolean hasAction​(java.lang.String... actions)
        Description copied from class: Entity
        Checks whether given actions are in the list of menu actions for an entity
        Specified by:
        hasAction in class Entity
        Parameters:
        actions - actions to check
        Returns:
        true if all actions are in the list of menu actions
      • getActions

        public java.lang.String[] getActions()
        Specified by:
        getActions in class Entity
      • getItem

        public Item getItem()
      • exists

        public boolean exists()
        Description copied from interface: Verified
        Determines where or not this object exists in game.
        Specified by:
        exists in interface Verified
        Overrides:
        exists in class Entity
        Returns:
        true, if the object exist, otherwise false.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object