ItemSpawnAPI
Static item spawn lookup and basic pickup routing.
ClassRLPlugins API
public class ItemSpawnAPIMembers
Static methods
- List<ItemSpawn>all()
All.
- ItemSpawnnearest(String)
Nearest.
- ItemSpawnnearest(int)
Nearest.
- ItemSpawnQuerysearch()
Search.
- voidtake(ItemSpawn)
Take.
- booleantakeAndConfirm(ItemSpawn)
Take and confirm.
- booleantakeAndConfirmNearest(String)
Take and confirm nearest.
- booleantakeAndConfirmNearest(int)
Take and confirm nearest.
- voidtakeNearest(String)
Take nearest.
- voidtakeNearest(int)
Take nearest.
- TileItemExvisibleTileItem(ItemSpawn)
Visible tile item.
- voidwalkTo(ItemSpawn)
Walk to.
- voidwalkToNearest(String)
Walk to nearest.
- voidwalkToNearest(int)
Walk to nearest.
all()static
public static List<ItemSpawn> all()All.
nearest(String)static
public static ItemSpawn nearest(String name)Nearest.
Parameters
name- Name.
nearest(int)static
public static ItemSpawn nearest(int itemId)Nearest.
Parameters
itemId- Item id.
search()static
public static ItemSpawnQuery search()Search.
take(ItemSpawn)static
public static void take(ItemSpawn spawn)Take.
Parameters
spawn- Spawn.
- Can wait for the game. Call it only from
VitaPlugin.loop(); in a@Subscribemethod it freezes the game.
takeAndConfirm(ItemSpawn)static
public static boolean takeAndConfirm(ItemSpawn spawn)Take and confirm.
Parameters
spawn- Spawn.
- Can wait for the game. Call it only from
VitaPlugin.loop(); in a@Subscribemethod it freezes the game.
takeAndConfirmNearest(String)static
public static boolean takeAndConfirmNearest(String name)Take and confirm nearest.
Parameters
name- Name.
- Can wait for the game. Call it only from
VitaPlugin.loop(); in a@Subscribemethod it freezes the game.
takeAndConfirmNearest(int)static
public static boolean takeAndConfirmNearest(int itemId)Take and confirm nearest.
Parameters
itemId- Item id.
- Can wait for the game. Call it only from
VitaPlugin.loop(); in a@Subscribemethod it freezes the game.
takeNearest(String)static
public static void takeNearest(String name)Take nearest.
Parameters
name- Name.
- Can wait for the game. Call it only from
VitaPlugin.loop(); in a@Subscribemethod it freezes the game.
takeNearest(int)static
public static void takeNearest(int itemId)Take nearest.
Parameters
itemId- Item id.
- Can wait for the game. Call it only from
VitaPlugin.loop(); in a@Subscribemethod it freezes the game.
visibleTileItem(ItemSpawn)static
public static TileItemEx visibleTileItem(ItemSpawn spawn)Visible tile item.
Parameters
spawn- Spawn.
walkTo(ItemSpawn)static
public static void walkTo(ItemSpawn spawn)Walk to.
Parameters
spawn- Spawn.
- Can wait for the game. Call it only from
VitaPlugin.loop(); in a@Subscribemethod it freezes the game.
walkToNearest(String)static
public static void walkToNearest(String name)Walk to nearest.
Parameters
name- Name.
- Can wait for the game. Call it only from
VitaPlugin.loop(); in a@Subscribemethod it freezes the game.
walkToNearest(int)static
public static void walkToNearest(int itemId)Walk to nearest.
Parameters
itemId- Item id.
- Can wait for the game. Call it only from
VitaPlugin.loop(); in a@Subscribemethod it freezes the game.
Also allowed
Every class has these, as in plain Java.
equals, toString