Package org.dreambot.api.wrappers.items
Class GroundItem
- java.lang.Object
-
- org.dreambot.api.wrappers.interactive.interact.Interactable
-
- org.dreambot.api.wrappers.interactive.Entity
-
- org.dreambot.api.wrappers.items.GroundItem
-
- All Implemented Interfaces:
Identifiable,Locatable,Verified
public class GroundItem extends Entity
-
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()Determines where or not this object exists in game.java.lang.String[]getActions()intgetAmount()java.awt.RectanglegetBoundingBox()Gets the bounding box for the entity's modelintgetGridX()Gets grid (local) X coordinate of the given object.intgetGridY()Gets grid (local) Y coordinate of the given object.intgetHeight()intgetId()Gets ID number of the given object.ItemgetItem()intgetLocalX()intgetLocalY()java.lang.StringgetName()Gets the name of the entityintgetPlane()intgetRenderableHeight()TilegetTile()Gets tile of the object.intgetX()Gets X coordinate of the given object.intgetY()Gets Y coordinate of the given object.intgetZ()Gets Z coordinate of the given object.booleanhasAction(java.lang.String... actions)Checks whether given actions are in the list of menu actions for an entitybooleanisOnScreen()Checks whether the entity is visible on the game screenvoidsetTile(Tile t)voidsetZ(int z)java.lang.StringtoString()-
Methods inherited from class org.dreambot.api.wrappers.interactive.Entity
canReach, distance, distance, distance, equals, getCenterPoint, getClickablePoint, getLeftClickAction, getModel, getReference, getSurroundingArea, getTileReference, hashCode, interact, interact, interact, interact, interact, interactForceLeft, interactForceRight, walkingDistance
-
Methods inherited from class org.dreambot.api.wrappers.interactive.interact.Interactable
hover, rightClick
-
Methods inherited from interface org.dreambot.api.wrappers.interactive.Identifiable
getID
-
Methods inherited from interface org.dreambot.api.wrappers.interactive.Locatable
canReach, getRegionId, tileDistance
-
-
-
-
Method Detail
-
setTile
public void setTile(Tile t)
-
getHeight
public int getHeight()
-
getId
public int getId()
Description copied from interface:IdentifiableGets 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:LocatableGets X coordinate of the given object.- Returns:
- the X coordinate of the object.
-
getY
public int getY()
Description copied from interface:LocatableGets Y coordinate of the given object.- Returns:
- the Y coordinate of the object.
-
getGridX
public int getGridX()
Description copied from interface:LocatableGets grid (local) X coordinate of the given object.- Returns:
- the grid X coordinate of the object.
-
getGridY
public int getGridY()
Description copied from interface:LocatableGets grid (local) Y coordinate of the given object.- Returns:
- the grid Y coordinate of the object.
-
getZ
public int getZ()
Description copied from interface:LocatableGets 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:EntityChecks whether the entity is visible on the game screen- Overrides:
isOnScreenin classEntity- Returns:
- true if the entity is visible
-
getBoundingBox
public java.awt.Rectangle getBoundingBox()
Description copied from class:EntityGets the bounding box for the entity's model- Overrides:
getBoundingBoxin classEntity- Returns:
- bounding box of model
-
getRenderableHeight
public int getRenderableHeight()
- Specified by:
getRenderableHeightin classEntity
-
getName
public java.lang.String getName()
Description copied from class:EntityGets the name of the entity- Specified by:
getNamein interfaceIdentifiable- Specified by:
getNamein classEntity- Returns:
- name of entity
-
hasAction
public boolean hasAction(java.lang.String... actions)
Description copied from class:EntityChecks whether given actions are in the list of menu actions for an entity
-
getActions
public java.lang.String[] getActions()
- Specified by:
getActionsin classEntity
-
getItem
public Item getItem()
-
exists
public boolean exists()
Description copied from interface:VerifiedDetermines where or not this object exists in game.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-