
PetarLib
A library mod used by PetarMc1's mods. It provides essential tools for chat handling, logging, networking, and task scheduling.
- Загрузки
- 546
- Подписчики
- 0
- Обновлён
- 19 апреля 2026 г.
- Лицензия
- MIT
Опубликован 22 декабря 2025 г.
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.
Ченджлог
v2.0.0Релиз26.1.2 · 19 апреля 2026 г.
Port to 26.1.2
v2.0.0-alpha.3Альфа26.1-snapshot-4 · 31 января 2026 г.
Added back option to send notifications using chat
v2.0.0-alpha.2Альфа26.1-snapshot-4 · 27 января 2026 г.
Update notifications so now they use the action bar for displaying info/errors
v1.4.0+1.21.11Релиз1.21.11 · 24 января 2026 г.
Added PlayerChatSender class that sends chat messages from the client to the server (as if the player typed them)
v1.3.2+1.21.11Релиз1.21.11 · 20 января 2026 г.
Removed global log prefix from NotificationManager and now its required as parameter
v1.3.1+1.21.11Релиз1.21.11 · 15 января 2026 г.
Logger prefixes are now captured per PLog instance at creation, preventing one mod’s prefix from affecting other modules.
v1.3.0+1.21.11Релиз1.21.11 · 11 января 2026 г.
Fixed error logging with throwable to include the message in the output file
Added simple ModMenu support
Removed Plogger name from PLog formatting
Changed order in Plog formatting
v1.2.3-beta.1Бета1.21.11 · 10 января 2026 г.
Fixed error logging with throwable to include the message in the output file
Комментарии
Загружаем…