Glass Networking
作者:calmilamsy
A simple custom packet handler that vastly simplifies networking via NBT abuse.
介绍
中文介绍正在准备中,下面暂时显示原文。
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
GlassPacketListenerclass and implement the method. There’s aregisterGlassPacketconvenience 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).
calmilamsy 的其他作品
查看全部 →
StationAPI
by mine_diver, calmilamsy
A general use API for Fabric Loader mods on legacy Minecraft versions.
7.3万
1 个月前
Modrinth
Glass Config API
by calmilamsy
An API for easily creating and syncing configs in b1.7.3, with optional ModMenu support.
5.1万
9 个月前
Modrinth
ModMenu Beta
by calmilamsy
A simple unofficial port of ModMenu to beta 1.7.3.
2.8万
1 年前
Modrinth
HowManyItems Fabric
by calmilamsy
A GUI inventory editor and recipe viewer for beta 1.7.3.
7,630
2 年前
Modrinth
评论
登录后评论和评分