Uses of Class
privbot.wrappers.PrivObject
Packages that use PrivObject
Package
Description
ctx.* facades: inventory, bank, NPCs, widgets, and the other one-liners.Fluent queries behind
ctx.npcs.query(), objects, ground items, and widgets.-
Uses of PrivObject in privbot.hooks
Methods in privbot.hooks that return PrivObjectModifier and TypeMethodDescriptionClosest object matching any of the supplied names, ornull.GameObjects.closest(Predicate<PrivObject> pred) Closest object matching the predicate.Alias ofGameObjects.closest(String...).static PrivObjectGameObjects.nearest(Predicate<PrivObject> pred) Static lookup that needs noctx; preferctx.objects.closest(pred).Methods in privbot.hooks with parameters of type PrivObjectModifier and TypeMethodDescriptionbooleanMagic.castOnObject(String name, PrivObject target) Casts a spell by in-game name on a scene object.booleanInventory.useOnObject(String itemName, PrivObject object) Uses the first inventory item matchingitemNameonobject: select the item ("Use"), then use it on the object, the same two clicks a player makes (Elorin: op 447, then op 62 on the object's scene tag).Method parameters in privbot.hooks with type arguments of type PrivObjectModifier and TypeMethodDescriptionGameObjects.closest(Predicate<PrivObject> pred) Closest object matching the predicate.static PrivObjectGameObjects.nearest(Predicate<PrivObject> pred) Static lookup that needs noctx; preferctx.objects.closest(pred). -
Uses of PrivObject in privbot.query
Methods in privbot.query that return PrivObjectModifier and TypeMethodDescriptionObjectQuery.closest()Closest by Euclidean distance to the local player.ObjectQuery.closest(Predicate<PrivObject> pred) Narrows bypred(in place), then returns the closest match; seeObjectQuery.closest().ObjectQuery.first()The first remaining entry in snapshot order, or null when the query is empty.ObjectQuery.first(Predicate<PrivObject> pred) Narrows bypred(in place) and returns the first match, or null.ObjectQuery.nearest()Alias ofObjectQuery.closest().ObjectQuery.nearest(Predicate<PrivObject> pred) Alias ofObjectQuery.closest(Predicate).Methods in privbot.query that return types with arguments of type PrivObjectModifier and TypeMethodDescriptionObjectQuery.list()An unmodifiable view of the remaining entries.Method parameters in privbot.query with type arguments of type PrivObjectModifier and TypeMethodDescriptionObjectQuery.closest(Predicate<PrivObject> pred) Narrows bypred(in place), then returns the closest match; seeObjectQuery.closest().ObjectQuery.filter(Predicate<PrivObject> pred) Narrows this query in place and returns it.ObjectQuery.first(Predicate<PrivObject> pred) Narrows bypred(in place) and returns the first match, or null.ObjectQuery.nearest(Predicate<PrivObject> pred) Alias ofObjectQuery.closest(Predicate).ObjectQuery.where(Predicate<PrivObject> pred) Alias ofObjectQuery.filter(Predicate).Constructor parameters in privbot.query with type arguments of type PrivObjectModifierConstructorDescriptionObjectQuery(List<PrivObject> raw, net.runelite.api.Client client) Wraps a copy ofraw; plugins normally get a query fromctx.objects.query().