Started Rewriting Packet Handling
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.
This commit is contained in:
15
StevenDimDoors/mod_pocketDim/PacketConstants.java
Normal file
15
StevenDimDoors/mod_pocketDim/PacketConstants.java
Normal file
@@ -0,0 +1,15 @@
|
||||
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";
|
||||
}
|
||||
Reference in New Issue
Block a user