Class Places
java.lang.Object
privbot.hooks.Places
Named-location registry: resolves a human place name ("Bank", "Edgeville bank",
"Banker", an NPC/area name) to an anchor
WorldPoint + arrival radius,
drawing from the current server's movement config (banks + NPC anchors).
Single source of truth shared by Travel (navigate to a place) and the
builder's AT_NAMED/IN_NAMED_AREA conditions. Resolution needs no
live client; isAt(String) reads the player position via
GameThread.ensure(java.util.function.Supplier<T>, T).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA resolved named location: an anchor tile and the radius that counts as "at" it. -
Method Summary
Modifier and TypeMethodDescriptionbank()Nearest configured bank to the player (falls back to the first configured bank when offline).Names of this server's banks thatresolve(java.lang.String)can reach (they have a dest tile), in config order.booleanTrue when the player is within the resolved place's radius.names()All resolvable place names (banks + anchored NPCs) for the current server, plus the "Bank" keyword.Resolve a place name to an anchor + radius, ornullif unknown.
-
Method Details
-
resolve
Resolve a place name to an anchor + radius, ornullif unknown. Order: "bank" keyword → nearest configured bank; exact bank name; NPC anchor. -
bank
Nearest configured bank to the player (falls back to the first configured bank when offline). -
isAt
True when the player is within the resolved place's radius. -
names
-
bankNames
Names of this server's banks thatresolve(java.lang.String)can reach (they have a dest tile), in config order.
-