PetarLib
PetarLib is a utility library mod for Minecraft Fabric, designed to provide common functionalities for mods developed by Petar_mc. It simplifies tasks such as logging, chat message processing, HTTP requests, and task scheduling.
Features
- Logging: Simple and performant logging system with configurable output to console and files.
- Chat Pattern Matching: System for registering regex patterns and exact matches for chat messages with custom handlers.
- HTTP Client Wrapper: Wrapper around Java's HttpClient with retry logic and asynchronous support.
- Task Scheduling: Scheduler for running tasks asynchronously or with delays, with built-in exception handling.
Getting Started
To use PetarLib in your mod, add it as a dependency in your build.gradle or fabric.mod.json.
For more details, see the Installation guide.
API Documentation
Explore the API for each module:
For detailed API documentation, see the Javadocs.