Package | Description |
---|---|
net.minecraftforge.fml.network | |
net.minecraftforge.fml.network.event | |
net.minecraftforge.fml.network.simple |
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<ResourceLocation,NetworkInstance> |
NetworkRegistry.instances |
Modifier and Type | Method and Description |
---|---|
private static NetworkInstance |
NetworkRegistry.createInstance(ResourceLocation name,
java.util.function.Supplier<java.lang.String> networkProtocolVersion,
java.util.function.Predicate<java.lang.String> clientAcceptedVersions,
java.util.function.Predicate<java.lang.String> serverAcceptedVersions)
Creates the internal
NetworkInstance that tracks the channel data. |
private NetworkInstance |
NetworkRegistry.ChannelBuilder.createNetworkInstance()
Create the network instance
|
Modifier and Type | Method and Description |
---|---|
(package private) static java.util.Optional<NetworkInstance> |
NetworkRegistry.findTarget(ResourceLocation resourceLocation)
Find the
NetworkInstance , if possible |
Modifier and Type | Method and Description |
---|---|
private static boolean |
NetworkHooks.validateSideForProcessing(ICustomPacket<?> packet,
NetworkInstance ni,
NetworkManager manager) |
Modifier and Type | Method and Description |
---|---|
(package private) static java.util.List<java.lang.String> |
NetworkRegistry.listRejectedVanillaMods(java.util.function.BiFunction<NetworkInstance,java.lang.String,java.lang.Boolean> testFunction) |
private static boolean |
NetworkRegistry.validateChannels(java.util.Map<ResourceLocation,java.lang.String> incoming,
java.lang.String originName,
java.util.function.BiFunction<NetworkInstance,java.lang.String,java.lang.Boolean> testFunction)
Tests if the map matches with the supplied predicate tester
|
Modifier and Type | Field and Description |
---|---|
private NetworkInstance |
EventNetworkChannel.instance |
Constructor and Description |
---|
EventNetworkChannel(NetworkInstance instance) |
Modifier and Type | Field and Description |
---|---|
private NetworkInstance |
SimpleChannel.instance |
private NetworkInstance |
IndexedMessageCodec.networkInstance |
Constructor and Description |
---|
IndexedMessageCodec(NetworkInstance instance) |
SimpleChannel(NetworkInstance instance) |
SimpleChannel(NetworkInstance instance,
java.util.function.Consumer<NetworkEvent.ChannelRegistrationChangeEvent> registryChangeNotify) |
SimpleChannel(NetworkInstance instance,
java.util.Optional<java.util.function.Consumer<NetworkEvent.ChannelRegistrationChangeEvent>> registryChangeNotify) |