Package net.minecraftforge.fml.network
Class FMLConnectionData
java.lang.Object
net.minecraftforge.fml.network.FMLConnectionData
-
Field Summary
Modifier and TypeFieldDescriptionprivate com.google.common.collect.ImmutableMap<ResourceLocation,
String> private com.google.common.collect.ImmutableList<String>
-
Constructor Summary
ConstructorDescriptionFMLConnectionData
(List<String> modList, Map<ResourceLocation, String> channels) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableMap<ResourceLocation,
String> Returns the list of network channels present in the remote.com.google.common.collect.ImmutableList<String>
Returns the list of mods present in the remote.
-
Field Details
-
modList
-
channels
-
-
Constructor Details
-
FMLConnectionData
FMLConnectionData(List<String> modList, Map<ResourceLocation, String> channels)
-
-
Method Details
-
getModList
Returns the list of mods present in the remote. WARNING: This list is not authoritative. A mod missing from the list does not mean the mod isn't there, and similarly a mod present in the list does not mean it is there. People using hacked clients WILL hack the mod lists to make them look correct. Do not use this as an anti-cheat feature!- Returns:
- An immutable list of MODIDs
-
getChannels
Returns the list of network channels present in the remote. WARNING: This list is not authoritative. A channel missing from the list does not mean the remote won't accept packets with that channel ID, and similarly a channel present in the list does not mean the remote won't ignore it. People using hacked clients WILL hack the channel list to make it look correct. Do not use this as an anti-cheat feature!- Returns:
- An immutable map of channel IDs and their respective protocol versions.
-