Package net.minecraftforge.debug.misc
Class ModMismatchTest
java.lang.Object
net.minecraftforge.debug.misc.ModMismatchTest
This test mod provides a way to register a
SimpleChannel
with a different protocol version on the client and the server to cause a mod channel mismatch.
Additionally, this test mod can register a registry object for the dedicated server only, causing a registry mismatch. Registering a registry object for the client only is not supported, since that would not cause a registry mismatch.
With this test mod and at least one of its features enabled, a ModMismatchDisconnectedScreen
should appear when trying to join a test server,
displaying detailed information about why the handshake failed.
In case of a mismatch, the two displayed mod versions will be the same due to not being able to specify a different client and server mod version of this test mod.
This test mod is disabled by default to ensure that users can join test servers without needing to specifically disable this test mod.-
Field Summary
Modifier and TypeFieldDescriptionprivate static final String
private static final boolean
static final String
private static final boolean
private static final boolean
private static final boolean
private static final DeferredRegister<SoundEvent>
-
Constructor Summary
-
Method Summary
-
Field Details
-
MOD_ID
- See Also:
-
ENABLED
private static final boolean ENABLED- See Also:
-
REGISTER_FOR_SERVER
private static final boolean REGISTER_FOR_SERVER- See Also:
-
REGISTER_FOR_CLIENT
private static final boolean REGISTER_FOR_CLIENT- See Also:
-
REGISTER_REGISTRY_ENTRY
private static final boolean REGISTER_REGISTRY_ENTRY- See Also:
-
SOUND_EVENTS
-
CHANNEL_PROTOCOL_VERSION
-
-
Constructor Details
-
ModMismatchTest
public ModMismatchTest()
-