Setup
This page covers the setup for using PetarLib in your Fabric mod project.
Javadocs
Javadocs are the official API documentation for PetarLib, generated from the source code comments.
Logging
PetarLib provides a simple and performant logging system designed for Minecraft mods.
Chat Pattern Matching
PetarLib provides a system for matching chat messages using regex patterns or exact strings, with custom handlers.
HTTP Client
PetarLib provides a wrapper around Java's HttpClient for simplified asynchronous HTTP requests with retry logic.
Task Scheduling
PetarLib provides a task scheduler for running asynchronous tasks or delayed tasks with built-in exception handling and logging.
Notifications
PetarLib (v2.0.0+) provides a utility class for displaying in-game notifications to the player through the action bar (see image below). This is useful for mods that need to inform the player about events, errors, or other information.