Fix Queryable API gaps: isDespawned bug, missing methods, missing example files#1697
Merged
chsami merged 9 commits intodevelopmentfrom Mar 14, 2026
Merged
Fix Queryable API gaps: isDespawned bug, missing methods, missing example files#1697chsami merged 9 commits intodevelopmentfrom
chsami merged 9 commits intodevelopmentfrom
Conversation
Development
Development
Development
build(gradle): update microbot version to 2.1.22
runelite merge 1.2.24
Notify once for outdated Microbot plugins
build(gradle): update microbot version to 2.1.25
…ssing player model methods Co-authored-by: chsami <23292806+chsami@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Review new latest API for improvements
Fix Queryable API gaps: isDespawned bug, missing methods, missing example files
Mar 14, 2026
chsami
approved these changes
Mar 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The new Queryable API had a logic bug in
isDespawned(), several methods documented but unimplemented, and missing example files for two of the four entity types.Bug Fixes
Rs2TileItemModel.isDespawned()– logic was inverted and didn't handle the no-timer case (getDespawnTime() == -1):TileItemApiExampleExample 16 – was filtering with.where(item -> item.isDespawned())intending to keep live items; corrected to.where(item -> !item.isDespawned())Missing Implementations (documented but absent)
Rs2TileItemModel.pickup()– convenience wrapper overclick("Take")Rs2PlayerModel– addedisFriend(),isClanMember(),isFriendsChatMember(),getSkullIcon(),getOverheadIcon(), all delegating to the underlyingPlayerAPI via the client threadNew Query Method
count()added toIEntityQueryable/AbstractEntityQueryable– avoids allocating a full list just to count matches:Missing Example Files
PlayerApiExample.java– listed inREADME.mddirectory structure but did not existTileObjectApiExample.java– tile objects were the only entity type with no usage examplesDocs
QUERYABLE_API.md: addedcount()to API reference; correctedobj.interact()→obj.click()(the model exposesclick(), notinteract()); synced player method list with actual implementationREADME.md: addedTileObjectApiExample.javato directory structure and examples listWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
repo.runelite.net/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx1024m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-8.8-all/6gdy1pgp427xkqcjbxw3ylt6h/gradle-8.8/lib/gradle-launcher-8.8.jar -javaagent:/home/REDACTED/.gradle/wrapper/dists/gradle-8.8-all/6gdy1pgp427xkqcjbxw3ylt6h/gradle-8.8/lib/agents/gradle-instrumentation-agent-8.8.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.8(dns block)If you need me to access, download, or install something from one of these locations, you can either:
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.