Uses of Class
net.minecraftforge.network.ConnectionData
-
Uses of ConnectionData in net.minecraftforge.network
Modifier and TypeFieldDescription(package private) static final io.netty.util.AttributeKey<ConnectionData>
NetworkConstants.FML_CONNECTION_DATA
Modifier and TypeMethodDescriptionstatic @Nullable ConnectionData
NetworkHooks.getConnectionData
(Connection mgr) Modifier and TypeMethodDescriptionConnectionData.ModMismatchData.channel
(Map<ResourceLocation, String> mismatchedChannels, ConnectionData connectionData, boolean mismatchedDataFromServer) Creates a ModMismatchData instance from given channel mismatch data, which is processed side-aware depending on the value of mismatchedDataFromServerprivate static Map<ResourceLocation,
String> ConnectionData.ModMismatchData.enhanceWithModVersion
(Map<ResourceLocation, String> mismatchedChannels, ConnectionData connectionData, boolean mismatchedDataFromServer) Enhances a map of mismatched channels with the corresponding mod version.private static Map<ResourceLocation,
org.apache.commons.lang3.tuple.Pair<String, String>> ConnectionData.ModMismatchData.getPresentChannelData
(Set<ResourceLocation> mismatchedChannelsFilter, ConnectionData connectionData, boolean mismatchedDataFromServer) Queries the channel data from the side the mismatched data isn't from, in order to provide a map of all the present channels for a proper comparison against the mismatched channel data.private static org.apache.commons.lang3.tuple.Pair<ResourceLocation,
org.apache.commons.lang3.tuple.Pair<String, String>> ConnectionData.ModMismatchData.getPresentModDataFromChannel
(ResourceLocation channel, ConnectionData connectionData, boolean mismatchedDataFromServer) Queries the mod data from a given channel id from the side the mismatched data isn't from.private static Map<ResourceLocation,
org.apache.commons.lang3.tuple.Pair<String, String>> ConnectionData.ModMismatchData.getServerSidePresentModData
(Set<ResourceLocation> mismatchedModsFilter, ConnectionData connectionData) Queries the mod data from the server side.ConnectionData.ModMismatchData.registry
(com.google.common.collect.Multimap<ResourceLocation, ResourceLocation> mismatchedRegistryData, ConnectionData connectionData) Creates a ModMismatchData instance from given mismatched registry entries.