Package privbot.mechanics


@PublicApi package privbot.mechanics
Pure game-mechanic rules shared by plugins on every server: the same name and meaning on Impact, Elorin, Orion, SpawnPK and Roat Pkz.

Rules for everything in this package:

  • Pure. No client, adapter or thread calls, no clock, no I/O. A method answers from its arguments alone.
  • Unreadable is not "no". Where an input may be unknown, a type here takes null (or an Observed) and answers "unknown", never false, empty or 0.
  • Safe in a plugin's own unit tests. Nothing here needs a running client, so a plugin can test its use of these types with plain JUnit.
  • Narrow dependencies. Only the JDK, net.runelite.api.coords, net.runelite.api.Skill, privbot.api, privbot.task and privbot.hooks.container; enforced by MechanicsIsolationTest.