Class FMLConnectionData

java.lang.Object
net.minecraftforge.fmllegacy.network.FMLConnectionData

public class FMLConnectionData extends Object
  • Field Details

    • modList

      private com.google.common.collect.ImmutableList<String> modList
    • channels

      private com.google.common.collect.ImmutableMap<ResourceLocation,​String> channels
  • Constructor Details

  • Method Details

    • getModList

      public com.google.common.collect.ImmutableList<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,​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.