Class LoginPacketSplitTest

java.lang.Object
net.minecraftforge.debug.world.LoginPacketSplitTest

public class LoginPacketSplitTest extends Object
A test mod used to test splitting the ClientboundLoginPacket.
In order to test this works, first enable the packet. Start a local server and client. In the server console you should see how big the registryaccess in the packet would be, and how much % of the packet limit is represents.
Connect to the server from the client, and if you successfully connect and the /big_data command reports 50000 entries then the packet has been successfully split.

To test if the packet is too large simply remove the login packet from the ForgeConnectionNetworkFilter and try connecting again. You should see the connection fail.