62fed83e2f
Started rewriting our packet handling code. Deleted PacketHandler in favor of using sided (Server-, Client-) packet handlers to make it easier to follow what's going on in our code. Added some event-based handling of updates which greatly simplified signaling that data needs to be sent, but it's not completely done yet.
15 lines
535 B
Java
15 lines
535 B
Java
package StevenDimDoors.mod_pocketDim;
|
|
|
|
public class PacketConstants
|
|
{
|
|
private PacketConstants() { }
|
|
|
|
public static final byte CLIENT_JOIN_PACKET_ID = 1;
|
|
public static final byte CREATE_DIM_PACKET_ID = 2;
|
|
public static final byte UPDATE_DIM_PACKET_ID = 3;
|
|
public static final byte DELETE_DIM_PACKET_ID = 4;
|
|
public static final byte CREATE_LINK_PACKET_ID = 5;
|
|
public static final byte UPDATE_LINK_PACKET_ID = 6;
|
|
public static final byte DELETE_LINK_PACKET_ID = 7;
|
|
public static final String CHANNEL_NAME = "DimDoorsPackets";
|
|
}
|