-
Notifications
You must be signed in to change notification settings - Fork 1
Home
RazorPlay01 edited this page May 14, 2025
·
2 revisions
The Minecraft Networking API is a powerful library designed to simplify network communication between Minecraft servers and clients (versions 1.20.5+). It supports cross-platform setups, such as Paper servers with Fabric clients, enabling modders and plugin developers to create custom features like events, data sync, or client-side effects.
- Custom Packets: Define packets with unique IDs for specific tasks.
- Rich Serialization: Supports primitives, collections, maps, UUIDs, Optionals, and custom objects.
- Compression: Optional GZIP compression for efficient data transfer.
- Error Handling: Comprehensive exceptions for debugging.
- Cross-Platform: Works with Fabric, Paper, or mixed environments.
To use the API, follow these steps:
- Add the Dependency: Import the API via JitPack (see Setup).
- Register Packets: Define and register custom packets.
- Send/Receive Packets: Use the API to communicate between server and client.
- Setup: Configure your project and add the API.
- Fabric Integration: Use the API with Fabric clients.
- Paper Integration: Use the API with Paper servers.
- Examples: Practical examples for creating and using packets.
- Best Practices: Error handling and troubleshooting.
- Contributing: How to contribute to the API.