跳到正文

PetarLib

作者:PetarMc1

A library mod used by PetarMc1's mods. It provides essential tools for chat handling, logging, networking, and task scheduling.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

PetarLib

PetarLib is a utility library for minecraft mostly used by PetarMc1’s mods. It provides essential tools for chat handling, logging, networking, and task scheduling.

Key Features

  • Chat Module – Adds chat pattern matching.
  • Log Module – Adds a simple logging system that helps debugging.
  • Net Module – Handles network requests like talking to APIs
  • Task Module – Provides task scheduling and management tools to handle async operations.
  • Notification Module – Allows mods to display notifications in the action bar.

Why a Library When Code Can Be in the Mod Itself?

By centralizing essential utilities in a dedicated library, mods built with PetarLib are cleaner and easier to update/work on. This means cleaner code and not having the need to rewrite the same code multiple times

Are you a developer?

If you’re a mod developer looking to integrate PetarLib into your project you can check the dev docs. There you can find detailed documentation, usage examples, and dependency setup instructions.

常见问题

PetarLib 支持哪些 Minecraft 版本?

PetarLib 支持 Minecraft Java 版 1.21.8–26.1.2,共 5 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

PetarLib 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

PetarMc1 的其他作品

查看全部 →