Package net.neoforged.neoforge.network
Class HandshakeMessages.S2CModData
java.lang.Object
net.neoforged.neoforge.network.HandshakeMessages.LoginIndexedMessage
net.neoforged.neoforge.network.HandshakeMessages.S2CModData
- All Implemented Interfaces:
IntSupplier,SimpleLoginMessage,SimpleMessage
- Enclosing class:
- HandshakeMessages
Prefixes S2CModList by sending additional data about the mods installed on the server to the client
The mod data is stored as follows: [modId -> [modName, modVersion]]
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateS2CModData(Map<String, org.apache.commons.lang3.tuple.Pair<String, String>> mods) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandshakeMessages.S2CModDatadecode(FriendlyByteBuf input) voidencode(FriendlyByteBuf output) Encodes this message to thebuffer.getMods()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
-
mods
-
-
Constructor Details
-
S2CModData
public S2CModData() -
S2CModData
-
-
Method Details
-
decode
-
encode
Description copied from interface:SimpleMessageEncodes this message to thebuffer.- See Also:
-
getMods
-