Class ServerConfigurationNetworking

java.lang.Object
net.fabricmc.fabric.api.networking.v1.ServerConfigurationNetworking

public final class ServerConfigurationNetworking extends Object
Offers access to configuration stage server-side networking functionalities.

Server-side networking functionalities include receiving serverbound packets, sending clientbound packets, and events related to server-side network handlers. Packets received by this class must be registered to PayloadTypeRegistry.configurationC2S() on both ends. Packets sent by this class must be registered to PayloadTypeRegistry.configurationS2C() on both ends. Packets must be registered before registering any receivers.

This class should be only used for the logical server.

See ServerPlayNetworking for information on sending and receiving play phase packets.

See the documentation on each class for more information.

See Also: