Package net.minecraftforge.debug.world
Class LoginPacketSplitTest
java.lang.Object
net.minecraftforge.debug.world.LoginPacketSplitTest
A test mod used to test splitting the
In order to test this works, first
Connect to the server from the client, and if you successfully connect and the
To test if the packet is too large simply remove the login packet from 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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceKey<Registry<LoginPacketSplitTest.BigData>>
static final boolean
static final org.slf4j.Logger
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private String
randomString
(Random random, int length)
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG -
MOD_ID
- See Also:
-
ENABLED
public static final boolean ENABLED- See Also:
-
BIG_DATA
-
-
Constructor Details
-
LoginPacketSplitTest
public LoginPacketSplitTest()
-
-
Method Details
-
generateEntries
-
randomString
-