Add hook for modmenu for config screen.

This commit is contained in:
Matthew Messinger 2019-07-06 15:50:44 -04:00
parent 9d97379655
commit 2b9eb813b3
3 changed files with 24 additions and 0 deletions

View file

@ -53,6 +53,7 @@ dependencies {
include "com.minelittlepony:Kirin:${project.kirin_version}"
modImplementation "com.minelittlepony:HDSkins:${project.hd_skins_version}"
modImplementation "io.github.prospector.modmenu:ModMenu:1.6.2-93"
}
//

View file

@ -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();
}
}

View file

@ -18,6 +18,9 @@
"entrypoints": {
"client": [
"com.minelittlepony.client.FabMod"
],
"modmenu": [
"com.minelittlepony.client.modmenu.MineLPModMenuFactory"
]
},
"mixins": [