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

top.hendrixshen.magiclib.impl.config.MagicLibConfigGui Maven / Gradle / Ivy

There is a newer version: 0.7.398+fe2125a-beta
Show newest version
package top.hendrixshen.magiclib.impl.config;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import org.jetbrains.annotations.ApiStatus;
import top.hendrixshen.magiclib.MagicLibReference;
import top.hendrixshen.magiclib.malilib.impl.ConfigManager;
import top.hendrixshen.magiclib.malilib.impl.gui.ConfigGui;
import top.hendrixshen.magiclib.util.StringUtil;

@ApiStatus.Internal
@Environment(EnvType.CLIENT)
public class MagicLibConfigGui extends ConfigGui {
    private static MagicLibConfigGui INSTANCE;

    private MagicLibConfigGui(String identifier, String defaultTab, ConfigManager configManager) {
        super(identifier, defaultTab, configManager, () -> StringUtil.tr("gui.title", MagicLibReference.getModVersion(),
                StringUtil.trVersionType(MagicLibReference.getModVersion())));
    }

    protected static MagicLibConfigGui getInstance() {
        if (INSTANCE == null) {
            INSTANCE = new MagicLibConfigGui(MagicLibReference.getModIdentifier(),
                    MagicLibConfigs.ConfigCategory.GENERIC, ConfigManager.get(MagicLibReference.getModIdentifier()));
        }
        return INSTANCE;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy