Uses of Package
net.minecraftforge.fmllegacy.network
Package
Description
-
-
-
ClassDescription{ "fmlNetworkVersion" : FMLNETVERSION, "channels": [ { "res": "fml:handshake", "version": "1.2.3.4", "required": true } ], "mods": [ { "modid": "modid", "modmarker": "<somestring>" } ] }
-
ClassDescriptionUsed to spawn a custom entity without the same restrictions as
ClientboundAddEntityPacket
orClientboundAddMobPacket
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.fmllegacy.network.FMLPlayMessages.SpawnEntity, net.minecraft.world.level.Level, T>)
. -
-
-
ClassDescriptionInstance responsible for handling the overall FML network handshake.Server to client "list of mods".Wrapper for custom login packets.Used to spawn a custom entity without the same restrictions as
ClientboundAddEntityPacket
orClientboundAddMobPacket
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.fmllegacy.network.FMLPlayMessages.SpawnEntity, net.minecraft.world.level.Level, T>)
.{ "fmlNetworkVersion" : FMLNETVERSION, "channels": [ { "res": "fml:handshake", "version": "1.2.3.4", "required": true } ], "mods": [ { "modid": "modid", "modmarker": "<somestring>" } ] }Context forNetworkEvent
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 -
-
ClassDescriptionFired when the channel registration (see minecraft custom channel documentation) changes.Context for
NetworkEvent
A Distributor curried with a specific value instance, for actual dispatch -
-
-