This repository has been archived by the owner on Sep 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
fabric/src/main/java/cn/mrcraftteammc/mrscrafttown/config/MrCTFabricConfigger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package cn.mrcraftteammc.mrscrafttown.config; | ||
|
||
import eu.midnightdust.lib.config.MidnightConfig; | ||
|
||
public class MrCTFabricConfigger extends MidnightConfig { | ||
@Comment(category = "text") public static Comment text1; | ||
} |
9 changes: 8 additions & 1 deletion
9
fabric/src/main/java/cn/mrcraftteammc/mrscrafttown/fabric/MrsCraftTownModFabric.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
fabric/src/main/java/cn/mrcraftteammc/mrscrafttown/fabric/impl/ModMenuImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
package cn.mrcraftteammc.mrscrafttown.fabric.impl; | ||
|
||
import com.terraformersmc.modmenu.api.ConfigScreenFactory; | ||
import com.terraformersmc.modmenu.api.ModMenuApi; | ||
|
||
import eu.midnightdust.lib.config.MidnightConfig; | ||
import org.jetbrains.annotations.ApiStatus; | ||
|
||
import static cn.mrcraftteammc.mrscrafttown.MrsCraftTownMod.MOD_ID; | ||
|
||
@ApiStatus.Experimental | ||
public class ModMenuImpl implements ModMenuApi { | ||
@Override | ||
public ConfigScreenFactory<?> getModConfigScreenFactory() { | ||
return parent -> MidnightConfig.getScreen(parent, MOD_ID); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
forge/src/main/java/cn/mrcraftteammc/mrscrafttown/config/MrCTForgeConfigger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package cn.mrcraftteammc.mrscrafttown.config; | ||
|
||
import eu.midnightdust.lib.config.MidnightConfig; | ||
|
||
public class MrCTForgeConfigger extends MidnightConfig { | ||
@Comment(category = "text") public static Comment text1; | ||
} |
11 changes: 9 additions & 2 deletions
11
forge/src/main/java/cn/mrcraftteammc/mrscrafttown/forge/MrsCraftTownModForge.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters