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

top.hendrixshen.magiclib.tool.mixin.MixinAuditExecutor Maven / Gradle / Ivy

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

import top.hendrixshen.magiclib.MagicLibReference;
import top.hendrixshen.magiclib.util.FabricUtil;
import top.hendrixshen.magiclib.util.MixinUtil;

public class MixinAuditExecutor {
    private static final String KEYWORD_PROPERTY = String.format("%s.mixin_audit", MagicLibReference.getModIdentifier());

    public static void execute() {
        if (FabricUtil.isDevelopmentEnvironment() &&
                "true".equals(System.getProperty(MixinAuditExecutor.KEYWORD_PROPERTY))) {
            MagicLibReference.getLogger().info("Triggered mixin audit.");
            MixinUtil.audit();
            System.exit(0);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy