11package com .aizistral .nochatreports .common .config ;
22
3- import java .util .Arrays ;
4- import java .util .List ;
5- import java .util .stream .Stream ;
6-
73import com .aizistral .nochatreports .common .NCRCore ;
8- import com .aizistral .nochatreports .common .core .ServerSafetyState ;
9- import com .aizistral .nochatreports .common .core .SigningMode ;
10- import com .aizistral .nochatreports .common .gui .FontHelper ;
114import com .terraformersmc .modmenu .api .ConfigScreenFactory ;
125import com .terraformersmc .modmenu .api .ModMenuApi ;
136
14- import me .shedaniel .clothconfig2 .api .ConfigBuilder ;
15- import me .shedaniel .clothconfig2 .api .ConfigCategory ;
16- import me .shedaniel .clothconfig2 .api .ConfigEntryBuilder ;
177import net .fabricmc .api .EnvType ;
188import net .fabricmc .api .Environment ;
19- import net .minecraft .ChatFormatting ;
20- import net .minecraft .client .Minecraft ;
21- import net .minecraft .client .gui .screens .Screen ;
22- import net .minecraft .locale .Language ;
23- import net .minecraft .network .chat .ClickEvent ;
24- import net .minecraft .network .chat .Component ;
25- import net .minecraft .network .chat .HoverEvent ;
269
2710/**
2811 * Implementation of ModMenu and ClothConfig support for the mod.
29- * @author MODKILLER1001
3012 */
31-
3213@ Environment (EnvType .CLIENT )
3314public final class ModMenuIntegration implements ModMenuApi {
3415
3516 @ Override
3617 public ConfigScreenFactory <?> getModConfigScreenFactory () {
37- if (!ClothConfigIntegration .ACTIVE ) {
38- NCRCore .LOGGER .warn ("ClothConfig API not found, cannot provide config screen factory." );
39- return null ;
40- } else
18+ if (ClothConfigIntegration .ACTIVE ) {
4119 return ClothConfigIntegration ::getConfigScreen ;
42- }
20+ }
4321
44- }
22+ NCRCore .LOGGER .warn ("ClothConfig API not found, cannot provide config screen factory." );
23+ return ModMenuApi .super .getModConfigScreenFactory ();
24+ }
25+ }
0 commit comments