public final class Packets
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Packets.Client
List of packets sent by the client.
|
static class |
Packets.Server
List of packets sent only by the server.
|
Modifier and Type | Field and Description |
---|---|
static int |
MAXIMUM_PACKET_ID
The highest possible packet ID.
|
Constructor and Description |
---|
Packets() |
Modifier and Type | Method and Description |
---|---|
static Packets.Client |
getClientRegistry()
A registry that parses between names and packet IDs.
|
static java.lang.String |
getDeclaredName(int packetID)
Retrieves the name of a packet.
|
static Packets.Server |
getServerRegistry()
A registry that parses between names and packet IDs.
|
static int |
valueOf(java.lang.String name)
Find a packet by name.
|
public static final int MAXIMUM_PACKET_ID
public static Packets.Server getServerRegistry()
public static Packets.Client getClientRegistry()
public static int valueOf(java.lang.String name)
name
- - name of packet to find.public static java.lang.String getDeclaredName(int packetID)
packetID
- - packet to retrieve name.