Glass Networking 图标

Glass Networking

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.7
本资源为搬运资源,原资源地址: https://modrinth.com/mod/glass-networking
资源信息

Minecraft 版本: b1.7.3

平台: fabric

标签: library

资源介绍

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).
📥 下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Fluffy Fancy Clouds

价格:0 墨喵币
下载量:0

查看详情
Bank Storage

价格:0 墨喵币
下载量:0

查看详情
Clean View

价格:0 墨喵币
下载量:0

查看详情
Bloom & Serenity UI

价格:0 墨喵币
下载量:0

查看详情