mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14:23 +01:00
Add hook for modmenu for config screen.
This commit is contained in:
parent
9d97379655
commit
2b9eb813b3
3 changed files with 24 additions and 0 deletions
|
@ -53,6 +53,7 @@ dependencies {
|
||||||
include "com.minelittlepony:Kirin:${project.kirin_version}"
|
include "com.minelittlepony:Kirin:${project.kirin_version}"
|
||||||
|
|
||||||
modImplementation "com.minelittlepony:HDSkins:${project.hd_skins_version}"
|
modImplementation "com.minelittlepony:HDSkins:${project.hd_skins_version}"
|
||||||
|
modImplementation "io.github.prospector.modmenu:ModMenu:1.6.2-93"
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
package com.minelittlepony.client.modmenu;
|
||||||
|
|
||||||
|
import com.minelittlepony.client.gui.GuiPonySettings;
|
||||||
|
import io.github.prospector.modmenu.api.ModMenuApi;
|
||||||
|
import net.minecraft.client.gui.screen.Screen;
|
||||||
|
|
||||||
|
import java.util.function.Function;
|
||||||
|
|
||||||
|
public class MineLPModMenuFactory implements ModMenuApi {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getModId() {
|
||||||
|
return "minelp";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Function<Screen, ? extends Screen> getConfigScreenFactory() {
|
||||||
|
return screen -> new GuiPonySettings();
|
||||||
|
}
|
||||||
|
}
|
|
@ -18,6 +18,9 @@
|
||||||
"entrypoints": {
|
"entrypoints": {
|
||||||
"client": [
|
"client": [
|
||||||
"com.minelittlepony.client.FabMod"
|
"com.minelittlepony.client.FabMod"
|
||||||
|
],
|
||||||
|
"modmenu": [
|
||||||
|
"com.minelittlepony.client.modmenu.MineLPModMenuFactory"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"mixins": [
|
"mixins": [
|
||||||
|
|
Loading…
Reference in a new issue