Class WorldMapElements.Query
java.lang.Object
com.botwithus.bot.api.entities.WorldMapElements.Query
- Enclosing class:
WorldMapElements
Fluent filter builder for world-map element queries. Producer-side
filters (category / skill / name / "with-X" presence flags) ride on
the RPC params map; client-side filters (custom predicates, distance
sort) apply in Java after the RPC returns.
-
Method Summary
Modifier and TypeMethodDescriptionall()intcount()booleanexists()filter(Predicate<WorldMapElement> predicate) first()limit(int max) near(int tileX, int tileY, int radius) nearest()Default radius around the local player (covers a typical map view).nearPlayer(int radius) onPlane(int plane) withCategory(int category) withItemId(int itemId) withResourceNamed(String name) withSkill(int skillId) withSkill(int skillId, int minLevel, int maxLevel)
-
Method Details
-
named
-
withCategory
-
near
-
nearPlayer
-
nearPlayer
Default radius around the local player (covers a typical map view). -
onPlane
-
withSkill
-
withSkill
-
withDescription
-
withResources
-
withItemId
-
withResourceNamed
-
sortByDistance
-
limit
-
filter
-
all
-
nearest
-
findNearest
-
first
-
findFirst
-
exists
public boolean exists() -
count
public int count()
-