nineMinecraft is a joke site.
nineMinecraft is in no way affiliated with Modrinth or 9minecraft. (And frankly, who wants to be affiliated with the latter?)
Glass Networking

Glass Networking

Mod

A simple custom packet handler that vastly simplifies networking via NBT abuse.

Client or server Library

552 downloads
1 follower

This is a library mod that makes it insanely easy to add and use custom packets.

Not as flexible and extensible as StationAPI's system, but it works well for those who don't want to make StationAPI a hard dependency. Compatible with StationAPI.

Features:

  • Server and client know if each other has the mod, while still being able to connect to vanilla servers and clients.
  • Automatic packet short-circuiting for clients in singleplayer, or servers sending packets to itself, allowing for less side checks.

How to use (modders)

Assumes you already know a little on how packets work.
  • Implement the GlassPacketListener class and implement the method. There's a registerGlassPacket convenience method.
  • Add an entrypoint for glassnetworking, and point it to your new class.
    • The applicator field is where you should insert a lambda or method reference to handle what should happen when your packet is received.
  • Send packets from wherever you need in code, and watch as things just work(tm).

External resources


Project members

calmilamsy

Member


Technical information

License
MIT
Client side
optional
Server side
optional
Project ID