Package net.openosrs.api.dispatch
Class PacketDispatcher
- java.lang.Object
-
- net.openosrs.api.dispatch.PacketDispatcher
-
@Singleton public class PacketDispatcher extends java.lang.ObjectPacket-only dispatch through revisioned reflection hooks. Every claim made here is command-level: atruereturn means the client accepted the built packet into its queue — server observation is a P7 concern.
-
-
Constructor Summary
Constructors Constructor Description PacketDispatcher(net.runelite.api.Client client, Hooks hooks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanavailable()True only when hooks loaded AND bind-time verification succeeded.booleancipherReady()True once the Isaac cipher is seeded (i.e.java.lang.StringdryRunAll()Dry-run each mapped payload without login or live writer/cipher access.java.lang.StringdryRunById(int id, java.lang.Object... values)Replay only payload writes on a fresh byte-array-backed buffer.booleansend(java.lang.String packetName, java.lang.Object... values)Send a packet by semantic name.booleansendById(int id, java.lang.Object... values)Send a packet by opcode when a revision table has no semantic name.java.lang.StringverifyBind()Force the reflection bind now and return a diagnostic summary.
-
-
-
Constructor Detail
-
PacketDispatcher
@Inject public PacketDispatcher(net.runelite.api.Client client, Hooks hooks)
-
-
Method Detail
-
available
public boolean available()
True only when hooks loaded AND bind-time verification succeeded.
-
cipherReady
public boolean cipherReady()
True once the Isaac cipher is seeded (i.e. we are logged in).
-
verifyBind
public java.lang.String verifyBind()
Force the reflection bind now and return a diagnostic summary. Runs the full structural gate against the LIVE client classes.- Throws:
java.lang.IllegalStateException- when any gate fails (tier self-disables)
-
dryRunById
public java.lang.String dryRunById(int id, java.lang.Object... values)Replay only payload writes on a fresh byte-array-backed buffer. No live binding.
-
dryRunAll
public java.lang.String dryRunAll()
Dry-run each mapped payload without login or live writer/cipher access. Variable framing is reported separately from fixed payload checks.
-
send
public boolean send(java.lang.String packetName, java.lang.Object... values)Send a packet by semantic name. Values are supplied one-per-verified payload write operation; an arity mismatch is rejected before the node factory runs so it cannot consume an ISAAC value for an invalid request.
-
sendById
public boolean sendById(int id, java.lang.Object... values)Send a packet by opcode when a revision table has no semantic name.
-
-