All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.hendrixshen.magiclib.game.malilib.ModMenuImpl Maven / Gradle / Ivy

There is a newer version: 0.8.41
Show newest version
//#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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy