Package net.openosrs.api.query
Class ObjectQuery
- java.lang.Object
-
- net.openosrs.api.query.Query<ObjectRef,ObjectQuery>
-
- net.openosrs.api.query.ObjectQuery
-
public final class ObjectQuery extends Query<ObjectRef,ObjectQuery>
Filters current loaded object snapshots.
-
-
Constructor Summary
Constructors Constructor Description ObjectQuery(java.util.function.Supplier<java.util.List<ObjectRef>> source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectQueryat(net.runelite.api.coords.WorldPoint location)ObjectQuerynameContains(java.lang.String text)ObjectRefnearest(net.runelite.api.coords.WorldPoint origin)protected ObjectQueryself()ObjectQuerysortNearest(net.runelite.api.coords.WorldPoint origin)ObjectQuerywithAction(java.lang.String action)ObjectQuerywithId(int... ids)ObjectQuerywithin(net.runelite.api.coords.WorldPoint origin, int distance)ObjectQuerywithName(java.lang.String name)
-
-
-
Constructor Detail
-
ObjectQuery
public ObjectQuery(java.util.function.Supplier<java.util.List<ObjectRef>> source)
-
-
Method Detail
-
self
protected ObjectQuery self()
- Specified by:
selfin classQuery<ObjectRef,ObjectQuery>
-
withId
public ObjectQuery withId(int... ids)
-
withName
public ObjectQuery withName(java.lang.String name)
-
nameContains
public ObjectQuery nameContains(java.lang.String text)
-
withAction
public ObjectQuery withAction(java.lang.String action)
-
at
public ObjectQuery at(net.runelite.api.coords.WorldPoint location)
-
within
public ObjectQuery within(net.runelite.api.coords.WorldPoint origin, int distance)
-
sortNearest
public ObjectQuery sortNearest(net.runelite.api.coords.WorldPoint origin)
-
nearest
public ObjectRef nearest(net.runelite.api.coords.WorldPoint origin)
-
-