Uses of Class
net.minecraftforge.fml.network.NetworkInstance
Package
Description
-
Uses of NetworkInstance in net.minecraftforge.fml.network
Modifier and TypeFieldDescriptionprivate static Map<ResourceLocation,
NetworkInstance> NetworkRegistry.instances
Modifier and TypeMethodDescriptionprivate static NetworkInstance
NetworkRegistry.createInstance
(ResourceLocation name, Supplier<String> networkProtocolVersion, Predicate<String> clientAcceptedVersions, Predicate<String> serverAcceptedVersions) Creates the internalNetworkInstance
that tracks the channel data.private NetworkInstance
NetworkRegistry.ChannelBuilder.createNetworkInstance()
Create the network instanceModifier and TypeMethodDescription(package private) static Optional<NetworkInstance>
NetworkRegistry.findTarget
(ResourceLocation resourceLocation) Find theNetworkInstance
, if possibleModifier and TypeMethodDescriptionprivate static boolean
NetworkHooks.validateSideForProcessing
(ICustomPacket<?> packet, NetworkInstance ni, NetworkManager manager) Modifier and TypeMethodDescriptionNetworkRegistry.listRejectedVanillaMods
(BiFunction<NetworkInstance, String, Boolean> testFunction) private static boolean
NetworkRegistry.validateChannels
(Map<ResourceLocation, String> incoming, String originName, BiFunction<NetworkInstance, String, Boolean> testFunction) Tests if the map matches with the supplied predicate tester -
Uses of NetworkInstance in net.minecraftforge.fml.network.event
-
Uses of NetworkInstance in net.minecraftforge.fml.network.simple
Modifier and TypeFieldDescriptionprivate final NetworkInstance
SimpleChannel.instance
private final NetworkInstance
IndexedMessageCodec.networkInstance
ModifierConstructorDescriptionIndexedMessageCodec
(NetworkInstance instance) SimpleChannel
(NetworkInstance instance) SimpleChannel
(NetworkInstance instance, Consumer<NetworkEvent.ChannelRegistrationChangeEvent> registryChangeNotify) private
SimpleChannel
(NetworkInstance instance, Optional<Consumer<NetworkEvent.ChannelRegistrationChangeEvent>> registryChangeNotify)