Jump to content
  • Create New...

Recommended Posts

  • Administrators

With the release of PowBot 8.8.0 the new Stream API has been introduced which is aimed at replacing the Query API.


The new Stream API adds extra methods to the Java 8 Streams API (learn more about them here) which make it easy to filter entities. Every API method class (Players, Npcs, Widgets, Bank etc) now has a toStream() method which will return you a stream containing all loaded entities for that class which you can filter/sort/iterate on.


Most of the naming of methods in the Stream API has been copied over from the Query API.


Example, Find nearest npc named Goblin where the distance between you and the goblin is <= 4:



  • Like 1
Link to post
Share on other sites
  • 2 weeks later...
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.