Download Glass Networking — Minecraft Mods — MetaMods

Glass Networking

Active

Downloads

3

Last update

2 months ago

Versions

b1.7.3
Client
Fabric
Libraries

Glass Networking

This library provides developers with a powerful tool that dramatically simplifies the process of creating and using custom network packets in Minecraft.

While the system doesn't offer the same flexibility and extensibility as StationAPI, it's perfect for those who prefer to avoid hard dependencies on StationAPI. Full compatibility with StationAPI is maintained.

Key Features

The server and client automatically detect each other's mod presence while maintaining the ability to connect to vanilla servers and clients. The system automatically optimizes packet transmission in singleplayer or when the server sends packets to itself, reducing the need for side checks.

Developer Guide

To work with the library, you need to implement the GlassPacketListener class and the corresponding method. Developers have access to the convenient registerGlassPacket method.

Add an entry point for glassnetworking and point it to your new class. In the applicator field, insert a lambda expression or method reference that will handle your packet reception.

Now you can send packets from anywhere in your code and watch the system work correctly.

Project members
calmilamsy

calmilamsy

Developer

Created: 5 Sep 2024

ID: 56525