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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(FriendlyByteBuf input) voidencode(FriendlyByteBuf output) Encodes this message to thebuffer.Methods inherited from class net.neoforged.neoforge.network.HandshakeMessages.LoginIndexedMessage
getLoginIndex, setLoginIndexMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.network.simple.SimpleLoginMessage
getAsIntMethods 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:SimpleMessageEncodes this message to thebuffer.- See Also:
-
getMismatchedChannelData
-