类 ConnectionData

java.lang.Object
net.minecraftforge.network.ConnectionData

public class ConnectionData extends Object
  • 字段详细资料

    • modData

      private com.google.common.collect.ImmutableMap<String,org.apache.commons.lang3.tuple.Pair<String,String>> modData
    • channels

      private com.google.common.collect.ImmutableMap<ResourceLocation,String> channels
  • 构造器详细资料

  • 方法详细资料

    • 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!
      返回:
      An immutable list of MODIDs
    • getModData

      public com.google.common.collect.ImmutableMap<String,org.apache.commons.lang3.tuple.Pair<String,String>> getModData()
      Returns a map of mods and respective mod names and versions 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!
      返回:
      An immutable map of MODIDs and their respective mod versions
    • getChannels

      public com.google.common.collect.ImmutableMap<ResourceLocation,String> getChannels()
      Returns the list of impl 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!
      返回:
      An immutable map of channel IDs and their respective protocol versions.