Package net.minecraftforge.fml.network
package net.minecraftforge.fml.network
-
ClassDescriptionInstance responsible for handling the overall FML network handshake.Server to client "list of mods".Wrapper for custom login packets.Constants related to networkingUsed to spawn a custom entity without the same restrictions as
SSpawnObjectPacket
orSSpawnMobPacket
To customize how your entity is created clientside (instead of using the default factory provided to theEntityType
) seeEntityType.Builder.setCustomClientFactory(java.util.function.BiFunction<net.minecraftforge.fml.network.FMLPlayMessages.SpawnEntity, net.minecraft.world.World, T>)
.{ "fmlNetworkVersion" : FMLNETVERSION, "channels": [ { "res": "fml:handshake", "version": "1.2.3.4", "required": true } ], "mods": [ { "modid": "modid", "modmarker": "" } ] } IContainerFactory<T extends Container>ICustomPacket<T extends IPacket<?>>Fired when the channel registration (see minecraft custom channel documentation) changes.Context forNetworkEvent
The network registry.Builder for constructing network channels using a builder style API.Tracks individual outbound messages for dispatch to clients during login handling.Dispatcher for sending packets in response to a received packet.Means to distribute packets in various waysA Distributor curried with a specific value instance, for actual dispatch