Class LootDrop
java.lang.Object
privbot.hooks.LootDrop
A ground stack found by the configured-loot scan (
GroundItems.configuredDrop(java.util.function.Predicate<privbot.hooks.LootDrop>, int)) or picked for a Take
(GroundItems.takeConfiguredDrop(java.util.function.Predicate<privbot.hooks.LootDrop>, int)). It describes the stack as the scan saw it and does not change later.
Getting one back from takeConfiguredDrop means the Take was sent, not that the item arrived.- Since:
- 1.1.0
-
Method Summary
-
Method Details
-
itemId
public int itemId()- Returns:
- the item id of the stack
-
name
- Returns:
- the item's name as the client resolved it
-
sceneX
public int sceneX()- Returns:
- the stack's scene x (the Take's param0)
-
sceneY
public int sceneY()- Returns:
- the stack's scene y (the Take's param1)
-
location
public net.runelite.api.coords.WorldPoint location()- Returns:
- the stack's world tile
-
quantity
public int quantity()- Returns:
- the stack size
-
stackable
public boolean stackable()- Returns:
- whether the item stacks in the inventory (a stackable already carried needs no free slot)
-