top.hendrixshen.magiclib.impl.malilib.SharedConstants 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.
package top.hendrixshen.magiclib.impl.malilib;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;
import top.hendrixshen.magiclib.api.malilib.config.MagicConfigManager;
import top.hendrixshen.magiclib.impl.malilib.config.GlobalConfigManager;
import top.hendrixshen.magiclib.impl.malilib.config.MagicConfigHandler;
import top.hendrixshen.magiclib.util.VersionUtil;
public class SharedConstants {
@Getter
private static final String modIdentifier = "@MOD_IDENTIFIER@";
@Getter
private static final String modName = "@MOD_NAME@";
@Getter
private static final String modVersion = "@MOD_VERSION@";
@Getter
private static final String modVersionType = VersionUtil.getVersionType(SharedConstants.modVersion);
@Getter
private static final MagicConfigManager configManager = GlobalConfigManager
.getConfigManager(top.hendrixshen.magiclib.SharedConstants.getMagiclibIdentifier());
@Getter
private static final MagicConfigHandler configHandler = new MagicConfigHandler(SharedConstants.configManager,
1);
public static @NotNull String getTranslatedModVersionType() {
return VersionUtil.translateVersionType(SharedConstants.modVersion);
}
}