RuneHive-Tarnish
Neural OSRS Enhancement Framework
|
Static Public Member Functions | |
static void | registerListener (int opcode, PacketListener listener) |
static PacketListener | lookupListener (final int opcode) |
static PacketType | lookupType (int opcode) |
static int | lookupSize (int opcode) |
static void | registerType (int opcode, int type) |
The repository that stores packets sizes and listeners for how to execute the packets.
Definition at line 49 of file PacketRepository.java.
|
inlinestatic |
Looks up the listener for this packet.
opcode | The opcode of the packet |
Definition at line 96 of file PacketRepository.java.
|
inlinestatic |
Looks up the reference size of a packet.
opcode | The packet to lookup |
Definition at line 134 of file PacketRepository.java.
|
inlinestatic |
The method that looks up the packets type.
opcode | The opcode to lookup |
Definition at line 110 of file PacketRepository.java.
|
inlinestatic |
Registers a listener to listen for client -> server packet events.
opcode | The packet to intercept. |
listener | The listener that will execute this packet. |
Definition at line 84 of file PacketRepository.java.
|
inlinestatic |
Registers a type for a packet.
The following types are...
-2
var_short -1
var_byte 0
empty
0 fixed
opcode | The packet to register this type for |
type | The type for this packet. |
Definition at line 154 of file PacketRepository.java.