Uses of Class
net.neoforged.neoforge.network.NetworkInstance
Package
Description
-
Uses of NetworkInstance in net.neoforged.neoforge.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 impl instanceModifier and TypeMethodDescription(package private) static Optional<NetworkInstance>
NetworkRegistry.findTarget
(ResourceLocation resourceLocation) Find theNetworkInstance
, if possibleModifier and TypeMethodDescriptionprivate static boolean
NetworkHooks.validateSideForProcessing
(Packet<?> packet, ICustomPacketPayloadWithBuffer payload, NetworkInstance ni, Connection manager) private static boolean
NetworkHooks.validateSideForProcessing
(Packet<?> packet, ICustomQueryPayloadWithBuffer payload, NetworkInstance ni, Connection manager) Modifier and TypeMethodDescriptionNetworkRegistry.listRejectedVanillaMods
(BiFunction<NetworkInstance, String, Boolean> testFunction) private static Map<ResourceLocation,
String> 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.neoforged.neoforge.network.event
-
Uses of NetworkInstance in net.neoforged.neoforge.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)