Package net.minecraftforge.network
Class HandshakeMessages.S2CModList
java.lang.Object
net.minecraftforge.network.HandshakeMessages.LoginIndexedMessage
net.minecraftforge.network.HandshakeMessages.S2CModList
- All Implemented Interfaces:
IntSupplier
- Enclosing class:
- HandshakeMessages
Server to client "list of mods". Always first handshake message after the data sent by S2CModData.
-
Field Summary
Modifier and TypeFieldDescriptionprivate Map<ResourceLocation,
String> private final List<ResourceKey<? extends Registry<?>>>
private List<ResourceLocation>
-
Constructor Summary
ModifierConstructorDescriptionprivate
S2CModList
(List<String> mods, Map<ResourceLocation, String> channels, List<ResourceLocation> registries, List<ResourceKey<? extends Registry<?>>> dataPackRegistries) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandshakeMessages.S2CModList
decode
(FriendlyByteBuf input) void
encode
(FriendlyByteBuf output) List<ResourceKey<? extends Registry<?>>>
Methods inherited from class net.minecraftforge.network.HandshakeMessages.LoginIndexedMessage
getAsInt, getLoginIndex, setLoginIndex
-
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
-
getModList
-
getRegistries
-
getChannels
-
getCustomDataPackRegistries
- Returns:
- list of ids of non-vanilla syncable datapack registries on the server.
-