Package net.neoforged.neoforge.network
Class HandshakeMessages.S2CModList
java.lang.Object
net.neoforged.neoforge.network.HandshakeMessages.LoginIndexedMessage
net.neoforged.neoforge.network.HandshakeMessages.S2CModList
- All Implemented Interfaces:
IntSupplier,SimpleLoginMessage,SimpleMessage
- Enclosing class:
- HandshakeMessages
Server to client "list of mods". Always first handshake message after the data sent by S2CModData.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<ResourceLocation,String> private final List<ResourceKey<? extends Registry<?>>>private List<ResourceLocation> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateS2CModList(List<String> mods, Map<ResourceLocation, String> channels, List<ResourceLocation> registries, List<ResourceKey<? extends Registry<?>>> dataPackRegistries) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandshakeMessages.S2CModListdecode(FriendlyByteBuf input) voidencode(FriendlyByteBuf output) Encodes this message to thebuffer.List<ResourceKey<? extends Registry<?>>>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
-
channels
-
registries
-
dataPackRegistries
-
-
Constructor Details
-
S2CModList
public S2CModList() -
S2CModList
private S2CModList(List<String> mods, Map<ResourceLocation, String> channels, List<ResourceLocation> registries, List<ResourceKey<? extends Registry<?>>> dataPackRegistries)
-
-
Method Details
-
decode
-
encode
Description copied from interface:SimpleMessageEncodes this message to thebuffer.- See Also:
-
getModList
-
getRegistries
-
getChannels
-
getCustomDataPackRegistries
- Returns:
- list of ids of non-vanilla syncable datapack registries on the server.
-