← Назад к ресурсам

YetAnotherConfigLib (YACL)

A builder-based configuration library for Minecraft!

Modrinth library management utility

Описание

# YetAnotherConfigLib ![Enviroment](https://img.shields.io/badge/Enviroment-Client-purple) [![Java 17](https://img.shields.io/badge/Language-Java%2017-9B599A.svg?color=orange)](https://www.oracle.com/news/announcement/oracle-releases-java-17-2021-09-14) [![Discord](https://img.shields.io/discord/780023008668287017?color=blue&logo=discord&label=Discord)](https://short.isxander.dev/discord) [![Modrinth](https://img.shields.io/modrinth/dt/1eAoo2KR?color=00AF5C&label=downloads&logo=modrinth)](https://modrinth.com/mod/yacl) [![CurseForge](https://cf.way2muchnoise.eu/full_667299_downloads.svg)](https://curseforge.com/minecraft/mc-mods/yacl) [![Ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/isxander) Yet Another Config Lib, like, what were you expecting? [![](https://www.bisecthosting.com/partners/custom-banners/08bbd3ff-5c0d-4480-8738-de0f070a04dd.png)](https://bisecthosting.com/xander) ## Why does this mod even exist? This mod was made to fill a hole in this area of Fabric modding. The existing main config libraries don't achieve what I want from them: - **[Cloth Config API](https://modrinth.com/mod/cloth-config)**: **It's stale.** The developer of cloth has clarified that they are likely not going to add any more features. They don't want to touch it. ([citation](https://user-images.githubusercontent.com/43245524/206530322-3ae46008-5356-468e-9a73-63b859364d4e.png)) - **[SpruceUI](https://github.com/LambdAurora/SpruceUI)**: **It isn't designed for configuration.** In this essence the design feels cluttered. Further details available in [this issue](https://github.com/isXander/Zoomify/issues/85). - **[OwoLib](https://modrinth.com/mod/owo-lib)**: **It's content focused.** It does a lot of other things as well as config, adding to the size. As you can see, there's sadly a drawback with all of them and this is where YetAnotherConfigLib comes in. ## How is YACL better? YACL has the favour of hindsight. Whilst developing this fresh library, I can make sure that it does everything right: - **Easy API.** YACL takes inspiration from [Sodium's](https://modrinth.com/mod/sodium) internal configuration library. - **It's styled to fit in Minecraft.** YACL's GUI is designed to fit right in. ## Features YACL has a ton of configuration features: - Custom control widgets - Create your own unique "controller" if the default set does not suit your needs - Rich descriptions - Clickable & hoverable text, powered by vanilla's Text component system - WebP (including animated) image previews - Custom rich-renderable section to replace image - Multiple controllers for the same type: - Sliders or fields for numbers - Dropdowns, cyclers, or raw text fields for strings - Tickboxes or ON/OFF text display for booleans - ...and more! - Fully-featured color picker - Accessible with full compatibility for keyboard control (optimised for Controlify usage) - High organisation with tabs (categories) and collapsable groups - Built-in serialization/deserialization techniques so you can skip the error-prone config code - Full alternative Kotlin DSL ## Usage [The wiki](https://github.com/isXander/YetAnotherConfigLib/wiki/Usage) contains a full documentation on how to use YACL. ## Screenshots ![image preview](https://cdn.modrinth.com/data/1eAoo2KR/images/5862570281f5109119c11f21a1bba52b6a2ab17f.png) ## License This mod is under the [GNU Lesser General Public License, v3.0](LICENSE).