FlytreLib Mod — Reference
Core Mechanics & APIs
FlytreLib introduces several advanced systems that dependent mods utilize to function. These mechanics are primarily focused on streamlining mod interactions and providing a unified user experience.
Config API
The library features a JSON-based configuration system that allows players and server owners to fine-tune mod settings. Key features include: * Auto-Generation: Automatically creates default configuration files if they are missing. * Hot-Reloading: Detects changes made to the config file on the disk and updates the game settings in real-time without requiring a restart. * Corruption Protection: Backs up broken or corrupted config files with a timestamp before resetting them to safe defaults.
GUI & Rendering Utilities
FlytreLib provides a suite of tools for creating modern, transparent, and interactive menus. This includes: * Cycling Buttons: Multi-state buttons that toggle through different settings. * Transparent Sliders: Aesthetic UI elements for adjusting numerical values. * Image-Based Buttons: Quick-implementation buttons that use custom textures for state changes. * Render Utils: Simplified code for handling 3D model rendering, used extensively in mods like Flytre's Gun Mod.
NBT Pattern Matching
This system allows mods to look up and match items, blocks, or entities based on specific NBT data. It supports partial matching, meaning only the specified tags (such as enchantments or custom names) need to match while others are ignored.
Items, Blocks, and Mobs
As a Library Mod, FlytreLib does not add any unique mobs, items, or blocks to the Minecraft world on its own. Its primary purpose is to provide the code that allows other mods to add these features.
If you are looking for specific items (like guns or furniture) or mobs (like new creeper types), ensure you have installed the corresponding content mod alongside FlytreLib. The library manages the registration and behavior of these elements but does not manifest them in the creative inventory or the game world independently.