+ * Updated by Sakura to work with newer versions by changing the Reading Session keys, + * and using the HANDLER interface to send packets via the Payload system + *
+ * Move to Leaves by violetc
+ */
+public class PacketSplitter {
+ public static final int MAX_TOTAL_PER_PACKET_S2C = 1048576;
+ public static final int MAX_PAYLOAD_PER_PACKET_S2C = MAX_TOTAL_PER_PACKET_S2C - 5;
+ public static final int MAX_TOTAL_PER_PACKET_C2S = 32767;
+ public static final int MAX_PAYLOAD_PER_PACKET_C2S = MAX_TOTAL_PER_PACKET_C2S - 5;
+ public static final int DEFAULT_MAX_RECEIVE_SIZE_C2S = 1048576;
+ public static final int DEFAULT_MAX_RECEIVE_SIZE_S2C = 67108864;
+
+ private static final Map