top.hendrixshen.magiclib.tool.mixin.MixinAuditExecutor 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.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