YetAnotherConfigEnhancement (YACE)

Library for YACL which adds new ways to customize a config menu for developers
An itemIcon, entityIcon, statusEffectIcon and identifierIcon

An itemIcon, entityIcon, statusEffectIcon and identifierIcon

Description

This mod adds new ways to further customize a yacl config menu. It is mainly thought for developers wanting to use these enhancements in their own mods.

Ports to versions 1.20-26.3 will be coming soon

Feature Overview

  • Widget and option group icons (items, 3d entities, statuseffects, identifier paths)
  • Adjusting values by scrolling
  • Centering option values
  • New tickCrossFormatter for BooleanController
  • New YaceStringSelectionDropdownController

How does it work?

Getting started

Add the newest version of this mod to your build.gradle. You can find out how by clicking on the specific version on modrinth and scrolling down to the code section for developers.

Migrating to the new builder

Every controller got a new class that adds these new features. To use them simply replace the original yacl builder class from your mod menu integration with the one of this mod. Every Builder is exactly named the same in addition to the Yace prefix. Here's an example:

- .controller(opt -> DoubleFieldControllerBuilder.create(opt))
+ .controller(opt -> YaceDoubleFieldControllerBuilder.create(opt))

Use the features

You can now simply use all of the features by adding them to your builder method chain just like in yacl. Here's an example:

.controller(opt -> YaceDoubleFieldControllerBuilder.create(opt)
        .icon(Items.DIAMOND.getDefaultStack())
        .adjustableByScrolling(0.01)
        .min(0.0)
        .max(Double.MAX_VALUE))

Detailed Description

You can find detailed descriptions of each new feature (with images) here

Support

If you have questions, encounter problems, find bugs or have suggestions you can join my discord server:

Fneifnox's Mods Discord Server

YetAnotherConfigEnhancement (YACE) Team

profile avatar
  • 1
    Followers
  • 7
    Projects
  • 11.4K
    Downloads

More from FneifnoxView all