top.hendrixshen.magiclib.game.malilib.ModMenuImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of magiclib-malilib-extra-1.19.2-fabric Show documentation
Show all versions of magiclib-malilib-extra-1.19.2-fabric Show documentation
Unleash Magic Enhancement Malilib.
//#if FABRIC
package top.hendrixshen.magiclib.game.malilib;
import ConfigScreenFactoryCompat;
import top.hendrixshen.magiclib.api.compat.modmenu.ModMenuApiCompat;
import top.hendrixshen.magiclib.impl.malilib.SharedConstants;
public class ModMenuImpl implements ModMenuApiCompat {
@Override
public ConfigScreenFactoryCompat> getConfigScreenFactoryCompat() {
return (screen) -> {
ConfigGui configGui = new ConfigGui();
//#if MC > 11903
//$$ configGui.setParent(screen);
//#else
configGui.setParentGui(screen);
//#endif
return configGui;
};
}
@Override
public String getModIdCompat() {
return SharedConstants.getModIdentifier();
}
}
//#endif