介绍
MisakaNetwork
MisakaNetwork is a library mod that provides a powerful and efficient networking framework for other Minecraft mods.
Information for Players
What is this mod?
This is a library mod. It does not add any new content such as items, blocks, or entities on its own. Instead, it provides essential code and functionality that other mods rely on to work correctly.
Why do I need it?
Other mods use MisakaNetwork to handle their multiplayer communication smoothly and reliably. By providing a stable networking system, this library helps reduce lag and prevent bugs in the mods that depend on it, resulting in a better gameplay experience for you.
Installation
You should only download and install this mod if it is listed as a required dependency by another mod that you are using. If no other mod requires it, you do not need it.
Information for Mod Developers
MisakaNetwork is a lightweight and modern networking library designed to simplify the creation and handling of custom packets.
Core Features:
- Annotation-Driven: Cleanly register packet handlers and future handlers using annotations (
@SubscribePacket,@HandleFuture), which are processed at compile time to generate the necessary boilerplate code. - Asynchronous API: Features a built-in request-response system based on Futures, allowing for easy implementation of asynchronous communication between the client and server.
- Type-Safe and Modern: Built for modern Java versions and designed with type safety in mind, leveraging modern features to create a clean and intuitive API.
- Embeddable by Design: Can be easily included within your mod’s final JAR using JarJar or similar tools, minimizing the dependencies that end-users need to manage manually.
For complete documentation, usage examples, and setup instructions, please refer to the project’s README on GitHub.
常见问题
MisakaNetwork 支持哪些 Minecraft 版本?
MisakaNetwork 支持 Minecraft Java 版 1.21.10,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
MisakaNetwork 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
评论
登录后评论和评分