Package net.neoforged.neoforge.network
Class HandshakeMessages.S2CChannelMismatchData
java.lang.Object
net.neoforged.neoforge.network.HandshakeMessages.LoginIndexedMessage
net.neoforged.neoforge.network.HandshakeMessages.S2CChannelMismatchData
- All Implemented Interfaces:
IntSupplier
,SimpleLoginMessage
,SimpleMessage
- Enclosing class:
- HandshakeMessages
public static class HandshakeMessages.S2CChannelMismatchData
extends HandshakeMessages.LoginIndexedMessage
Notifies the client of a channel mismatch on the server, so a
ModMismatchDisconnectedScreen
is used to notify the user of the disconnection.
This packet also sends the data of a channel mismatch (currently, the ids and versions of the mismatched channels) to the client for it to display the correct information in said screen.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecode
(FriendlyByteBuf input) void
encode
(FriendlyByteBuf output) Encodes this message to thebuffer
.Methods inherited from class net.neoforged.neoforge.network.HandshakeMessages.LoginIndexedMessage
getLoginIndex, setLoginIndex
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.network.simple.SimpleLoginMessage
getAsInt
Methods inherited from interface net.neoforged.neoforge.network.simple.SimpleMessage
handleMainThread, handleNetworkThread
-
Field Details
-
mismatchedChannelData
-
-
Constructor Details
-
S2CChannelMismatchData
-
-
Method Details
-
decode
-
encode
Description copied from interface:SimpleMessage
Encodes this message to thebuffer
.- See Also:
-
getMismatchedChannelData
-