top.hendrixshen.magiclib.impl.config.MagicLibConfigGui Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of magiclib-1_14_4 Show documentation
Show all versions of magiclib-1_14_4 Show documentation
To beat magic with magic :(
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