Package net.minecraftforge.fml.network
Class FMLHandshakeMessages.S2CModList
- java.lang.Object
-
- net.minecraftforge.fml.network.FMLHandshakeMessages.LoginIndexedMessage
-
- net.minecraftforge.fml.network.FMLHandshakeMessages.S2CModList
-
- All Implemented Interfaces:
java.util.function.IntSupplier
- Enclosing class:
- FMLHandshakeMessages
public static class FMLHandshakeMessages.S2CModList extends FMLHandshakeMessages.LoginIndexedMessage
Server to client "list of mods". Always first handshake message.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<ResourceLocation,java.lang.String>
channels
private java.util.List<java.lang.String>
mods
private java.util.List<ResourceLocation>
registries
-
Constructor Summary
Constructors Modifier Constructor Description S2CModList()
private
S2CModList(java.util.List<java.lang.String> mods, java.util.Map<ResourceLocation,java.lang.String> channels, java.util.List<ResourceLocation> registries)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FMLHandshakeMessages.S2CModList
decode(PacketBuffer input)
void
encode(PacketBuffer output)
java.util.Map<ResourceLocation,java.lang.String>
getChannels()
java.util.List<java.lang.String>
getModList()
java.util.List<ResourceLocation>
getRegistries()
-
Methods inherited from class net.minecraftforge.fml.network.FMLHandshakeMessages.LoginIndexedMessage
getAsInt, getLoginIndex, setLoginIndex
-
-
-
-
Field Detail
-
mods
private java.util.List<java.lang.String> mods
-
channels
private java.util.Map<ResourceLocation,java.lang.String> channels
-
registries
private java.util.List<ResourceLocation> registries
-
-
Constructor Detail
-
S2CModList
public S2CModList()
-
S2CModList
private S2CModList(java.util.List<java.lang.String> mods, java.util.Map<ResourceLocation,java.lang.String> channels, java.util.List<ResourceLocation> registries)
-
-
Method Detail
-
decode
public static FMLHandshakeMessages.S2CModList decode(PacketBuffer input)
-
encode
public void encode(PacketBuffer output)
-
getModList
public java.util.List<java.lang.String> getModList()
-
getRegistries
public java.util.List<ResourceLocation> getRegistries()
-
getChannels
public java.util.Map<ResourceLocation,java.lang.String> getChannels()
-
-