Wiki 9Minecraft Fireplace Lib Mod Wiki

Fireplace Lib Mod — Guide

Core Mechanics & Features

Fireplace Lib introduces several technical frameworks that optimize how mods interact with the Minecraft engine and the server-client relationship.

Multithreading

The library enables multithreading capabilities for dependent mods. This allows complex calculations—such as pathfinding for skeleton armies in the Overlord mod or economy processing in Grand Economy—to occur on separate threads, preventing server lag and maintaining a high TPS (Ticks Per Second).

Serialization and Deserialization

Fireplace Lib simplifies the process of saving and loading data. It provides a robust framework for converting Java objects into JSON format and vice versa. This is primarily used for: * Config Files: Generating and reading user settings. * Player Data: Saving mod-specific player progress or statistics. * World Data: Storing information about custom structures or land claims.

Translation Management

One of the unique features of this library is its advanced translation management. It is specifically designed for "client-side-optional" mods. This means that if a server uses a mod that requires Fireplace Lib, a player can join without having that mod installed. If the player does choose to install it, Fireplace Lib ensures they can see the mod's content in their own language, regardless of the server's default language settings.

Lazy Configuration

The library utilizes a "Lazy Configuration" system. Instead of loading every possible configuration value into memory during the initial Minecraft startup, values are only loaded and calculated the first time they are actually needed by the game. This reduces memory overhead and speeds up the game's loading time.

Items, Blocks, and Mobs

As a technical library, Fireplace Lib does not add any items, blocks, or mobs to the game directly. It provides the code necessary for other mods to add these features. For example, while Fireplace Lib contains the code for skeleton behavior, the actual Skeleton Warriors are added by the Overlord mod.

Users looking for new gameplay content should install the dependent mods listed in the Integration section.