Uses of Package
net.minecraftforge.network
Package
Description
-
-
-
-
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.network.PlayMessages.SpawnEntity, net.minecraft.world.level.Level, T>)
. -
ClassDescriptionA class for holding the mod mismatch data of a failed handshake.
-
-
-
ClassDescriptionA class for holding the mod mismatch data of a failed handshake.Instance responsible for handling the overall FML impl handshake.Notifies the client of a channel mismatch on the server, so a
ModMismatchDisconnectedScreen
is used to notify the user of the disconnection.Prefixes S2CModList by sending additional data about the mods installed on the server to the client The mod data is stored as follows: [modId -> [modName, modVersion]]Server to client "list of mods".Wrapper for custom login packets.Context forNetworkEvent
Dispatcher for sending packets in response to a received packet.Builder for constructing impl channels using a builder style API.Tracks individual outbound messages for dispatch to clients during login handling.Means to distribute packets in various waysA Distributor curried with a specific value instance, for actual dispatchUsed to spawn a custom entity without the same restrictions asClientboundAddEntityPacket
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.network.PlayMessages.SpawnEntity, net.minecraft.world.level.Level, T>)
.Represents additional data sent by FML when a server is pinged. -
-
-
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 -
-