Wiki 9Minecraft Wiki 9Minecraft

Fireplace Lib Core Mechanics & Features

Guides 2FAQ 10Dependencies 2Related mods 60
DownloadFireplace Lib

Get the files on 9Minecraft

Contents (6)
  1. Multithreading
  2. Serialization and Deserialization
  3. Translation Management
  4. Lazy Configuration
  5. Next guides
  6. More in this wiki

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.