promotional bannermobile promotional banner

Networking API

Universal Networking API for multiple MC versions and loaders.

Networking

This mod provide universal network APIs for other mods.

Other mods should include this mod in their mod files. If not, you can download standalone versions here.

Developer Usages

  • ClientNetworking.sendToServer: Send a FriendlyByteBuf/Payload to server.
  • ClientNetworking.registerReceiver: Register a handler for FriendlyByteBuf/Payload from server.
  • ServerNetworking.sendTo/sendToPlayer/sendToAll: Send a FriendlyByteBuf/Payload to specific targets.
  • ServerNetworking.registerReceiver: Register a handler for FriendlyByteBuf/Payload from server.

1.20.4-

  • Networking.createBuf: Create an empty FriendlyByteBuf.

1.20.5+

  • Networking.registerPayloadType: Register a payload type manually, usually used for C2S payloads.

The Networking API Team

profile avatar
  • 98
    Followers
  • 70
    Projects
  • 32.4M
    Downloads
Donate

More from IAFEnvoyView all