Package net.minecraftforge.fml.network
Class FMLConnectionData
- java.lang.Object
-
- net.minecraftforge.fml.network.FMLConnectionData
-
public class FMLConnectionData extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableMap<ResourceLocation,java.lang.String>
channels
private com.google.common.collect.ImmutableList<java.lang.String>
modList
-
Constructor Summary
Constructors Constructor Description FMLConnectionData(java.util.List<java.lang.String> modList, java.util.Map<ResourceLocation,java.lang.String> channels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableMap<ResourceLocation,java.lang.String>
getChannels()
Returns the list of network channels present in the remote.com.google.common.collect.ImmutableList<java.lang.String>
getModList()
Returns the list of mods present in the remote.
-
-
-
Field Detail
-
modList
private com.google.common.collect.ImmutableList<java.lang.String> modList
-
channels
private com.google.common.collect.ImmutableMap<ResourceLocation,java.lang.String> channels
-
-
Constructor Detail
-
FMLConnectionData
FMLConnectionData(java.util.List<java.lang.String> modList, java.util.Map<ResourceLocation,java.lang.String> channels)
-
-
Method Detail
-
getModList
public com.google.common.collect.ImmutableList<java.lang.String> 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
public com.google.common.collect.ImmutableMap<ResourceLocation,java.lang.String> 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.
-
-