@@ -25,7 +25,7 @@ public final class ClientConfig implements IClientConfig {
2525 // cheat_mode
2626 private final Supplier <GiveMode > giveMode ;
2727 private final Supplier <Boolean > cheatToHotbarUsingHotkeysEnabled ;
28- private final Supplier <Boolean > showHiddenItemsEnabled ;
28+ private final Supplier <Boolean > showHiddenIngredients ;
2929
3030 // bookmarks
3131 private final Supplier <Boolean > addBookmarksToFrontEnabled ;
@@ -51,139 +51,77 @@ public final class ClientConfig implements IClientConfig {
5151
5252 // tags
5353 private final Supplier <Boolean > tagContentTooltipEnabled ;
54- private final Supplier <Boolean > hideSingleIngredientTagsEnabled ;
54+ private final Supplier <Boolean > hideSingleTagContentTooltipEnabled ;
5555
5656 public ClientConfig (IConfigSchemaBuilder schema ) {
5757 instance = this ;
5858
5959 boolean isDev = Services .PLATFORM .getModHelper ().isInDev ();
6060
6161 IConfigCategoryBuilder appearance = schema .addCategory ("appearance" );
62- centerSearchBarEnabled = appearance .addBoolean (
63- "CenterSearch" ,
64- defaultCenterSearchBar ,
65- "Move the JEI search bar to the bottom center of the screen."
66- );
62+ centerSearchBarEnabled = appearance .addBoolean ("centerSearch" , defaultCenterSearchBar );
6763 maxRecipeGuiHeight = appearance .addInteger (
68- "RecipeGuiHeight " ,
64+ "recipeGuiHeight " ,
6965 defaultRecipeGuiHeight ,
7066 minRecipeGuiHeight ,
71- Integer .MAX_VALUE ,
72- "Max recipe GUI height."
67+ Integer .MAX_VALUE
7368 );
7469
75- IConfigCategoryBuilder cheatMode = schema .addCategory ("cheat_mode" );
76- giveMode = cheatMode .addEnum (
77- "GiveMode" ,
78- GiveMode .defaultGiveMode ,
79- "Choose if JEI should give ingredients directly to the inventory or pick them up with the mouse."
80- );
81- cheatToHotbarUsingHotkeysEnabled = cheatMode .addBoolean (
82- "CheatToHotbarUsingHotkeysEnabled" ,
83- false ,
84- "Enable cheating items into the hotbar by using Shift + numeric keys."
85- );
86- showHiddenItemsEnabled = cheatMode .addBoolean (
87- "ShowHiddenItems" ,
88- false ,
89- "Enable showing items that are not in the creative menu."
90- );
70+ IConfigCategoryBuilder cheating = schema .addCategory ("cheating" );
71+ giveMode = cheating .addEnum ("giveMode" , GiveMode .defaultGiveMode );
72+ cheatToHotbarUsingHotkeysEnabled = cheating .addBoolean ("cheatToHotbarUsingHotkeysEnabled" , false );
73+ showHiddenIngredients = cheating .addBoolean ("showHiddenIngredients" , false );
74+ showTagRecipesEnabled = cheating .addBoolean ("showTagRecipesEnabled" , isDev );
9175
9276 IConfigCategoryBuilder bookmarks = schema .addCategory ("bookmarks" );
93- addBookmarksToFrontEnabled = bookmarks .addBoolean (
94- "AddBookmarksToFrontEnabled" ,
95- false ,
96- "Add new bookmarks to the front of the bookmark list instead of the end."
97- );
98- bookmarkTooltipFeatures = bookmarks .addList (
99- "BookmarkTooltipFeatures" ,
77+ addBookmarksToFrontEnabled = bookmarks .addBoolean ("addBookmarksToFrontEnabled" , false );
78+ dragToRearrangeBookmarksEnabled = bookmarks .addBoolean ("dragToRearrangeBookmarksEnabled" , true );
79+
80+ IConfigCategoryBuilder tooltips = schema .addCategory ("tooltips" );
81+ bookmarkTooltipFeatures = tooltips .addList (
82+ "bookmarkTooltipFeatures" ,
10083 BookmarkTooltipFeature .DEFAULT_BOOKMARK_TOOLTIP_FEATURES ,
101- new ListSerializer <>(new EnumSerializer <>(BookmarkTooltipFeature .class )),
102- "Extra features for bookmark tooltips."
103- );
104- holdShiftToShowBookmarkTooltipFeaturesEnabled = bookmarks .addBoolean (
105- "HoldShiftToShowBookmarkTooltipFeatures" ,
106- true ,
107- "Hold Shift to show bookmark tooltip features."
108- );
109- dragToRearrangeBookmarksEnabled = bookmarks .addBoolean (
110- "DragToRearrangeBookmarksEnabled" ,
111- true ,
112- "Drag bookmarks to rearrange them in the list."
84+ new ListSerializer <>(new EnumSerializer <>(BookmarkTooltipFeature .class ))
11385 );
86+ holdShiftToShowBookmarkTooltipFeaturesEnabled = tooltips .addBoolean ("holdShiftToShowBookmarkTooltipFeatures" , true );
87+ showCreativeTabNamesEnabled = tooltips .addBoolean ("showCreativeTabNamesEnabled" , false );
88+ tagContentTooltipEnabled = tooltips .addBoolean ("tagContentTooltipEnabled" , true );
89+ hideSingleTagContentTooltipEnabled = tooltips .addBoolean ("hideSingleTagContentTooltipEnabled" , true );
90+
91+ IConfigCategoryBuilder performance = schema .addCategory ("performance" );
92+ lowMemorySlowSearchEnabled = performance .addBoolean ("lowMemorySlowSearchEnabled" , false );
93+
94+ IConfigCategoryBuilder lookups = schema .addCategory ("lookups" );
95+ lookupFluidContentsEnabled = lookups .addBoolean ("lookupFluidContentsEnabled" , false );
96+ lookupBlockTagsEnabled = lookups .addBoolean ("lookupBlockTagsEnabled" , true );
11497
11598 IConfigCategoryBuilder advanced = schema .addCategory ("advanced" );
116- lowMemorySlowSearchEnabled = advanced .addBoolean (
117- "LowMemorySlowSearchEnabled" ,
118- false ,
119- "Set low-memory mode (makes search very slow but uses less RAM)."
120- );
121- catchRenderErrorsEnabled = advanced .addBoolean (
122- "CatchRenderErrorsEnabled" ,
123- !isDev ,
124- "Catch render errors from ingredients and attempt to recover from them instead of crashing."
125- );
126- lookupFluidContentsEnabled = advanced .addBoolean (
127- "lookupFluidContentsEnabled" ,
128- false ,
129- "When looking up recipes with items that contain fluids, also look up recipes for the fluids."
130- );
131- lookupBlockTagsEnabled = advanced .addBoolean (
132- "lookupBlockTagsEnabled" ,
133- true ,
134- "When searching for item tags, also include tags for the default blocks contained in the items."
135- );
136- showTagRecipesEnabled = advanced .addBoolean (
137- "showTagRecipesEnabled" ,
138- isDev ,
139- "Show recipes for ingredient tags like item tags and block tags."
140- );
141- showCreativeTabNamesEnabled = advanced .addBoolean (
142- "showCreativeTabNamesEnabled" ,
143- false ,
144- "Show creative tab names in ingredient tooltips."
145- );
99+ catchRenderErrorsEnabled = advanced .addBoolean ("catchRenderErrorsEnabled" , !isDev );
146100
147101 IConfigCategoryBuilder input = schema .addCategory ("input" );
148102 dragDelayMs = input .addInteger (
149103 "dragDelayInMilliseconds" ,
150104 150 ,
151105 0 ,
152- 1000 ,
153- "Number of milliseconds before a long mouse click is considered a drag operation."
106+ 1000
154107 );
155108 smoothScrollRate = input .addInteger (
156109 "smoothScrollRate" ,
157110 9 ,
158111 1 ,
159- 50 ,
160- "Scroll rate for scrolling the mouse wheel in smooth-scrolling scroll boxes. Measured in pixels."
112+ 50
161113 );
162114
163115 IConfigCategoryBuilder sorting = schema .addCategory ("sorting" );
164116 ingredientSorterStages = sorting .addList (
165- "IngredientSortStages " ,
117+ "ingredientSortStages " ,
166118 IngredientSortStage .defaultStages ,
167- new ListSerializer <>(new EnumSerializer <>(IngredientSortStage .class )),
168- "Sorting order for the ingredient list."
119+ new ListSerializer <>(new EnumSerializer <>(IngredientSortStage .class ))
169120 );
170121 recipeSorterStages = sorting .addList (
171- "RecipeSorterStages " ,
122+ "recipeSorterStages " ,
172123 RecipeSorterStage .defaultStages ,
173- new ListSerializer <>(new EnumSerializer <>(RecipeSorterStage .class )),
174- "Sorting order for displayed recipes."
175- );
176-
177- IConfigCategoryBuilder tags = schema .addCategory ("tags" );
178- tagContentTooltipEnabled = tags .addBoolean (
179- "TagContentTooltipEnabled" ,
180- true ,
181- "Show tag content in tooltips."
182- );
183- hideSingleIngredientTagsEnabled = tags .addBoolean (
184- "HideSingleIngredientTagsEnabled" ,
185- true ,
186- "Hide tags that only have 1 ingredient."
124+ new ListSerializer <>(new EnumSerializer <>(RecipeSorterStage .class ))
187125 );
188126 }
189127
@@ -237,8 +175,8 @@ public GiveMode getGiveMode() {
237175 }
238176
239177 @ Override
240- public boolean isShowHiddenItemsEnabled () {
241- return showHiddenItemsEnabled .get ();
178+ public boolean getShowHiddenIngredients () {
179+ return showHiddenIngredients .get ();
242180 }
243181
244182 @ Override
@@ -307,8 +245,8 @@ public boolean isTagContentTooltipEnabled() {
307245 }
308246
309247 @ Override
310- public boolean isHideSingleIngredientTagsEnabled () {
311- return hideSingleIngredientTagsEnabled .get ();
248+ public boolean getHideSingleTagContentTooltipEnabled () {
249+ return hideSingleTagContentTooltipEnabled .get ();
312250 }
313251
314252 @ Override
0 commit comments