Cloth Config API (Fabric/Forge/NeoForge)

Cloth Config API (Fabric/Forge/NeoForge)

168M Downloads

Question about search field

Nearata opened this issue ยท 1 comments

commented

version: 10.1.117
mc: 1.19.4
AutoConfig with Gson
Im using a GuiPredicateProvider

is there a way to not make fields disappear when searching ?

Screenshot_1
Screenshot_2

commented

fixed

i had to append search tags to each entry of the category

final ConfigEntryBuilder configentrybuilder = ConfigEntryBuilder.create();
final SubCategoryBuilder subcategorybuilder = configentrybuilder.startSubCategory("SubCategory"));

// some entries

subcategorybuilder.forEach(i -> i.appendSearchTags(Collections.singletonList("SubCategory")));

entries.add(subcategorybuilder.build());