aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/internal/init/OneConfigInit.java
blob: 438c60ee65e740b066682ff577d591fd500d8d36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package cc.polyfrost.oneconfig.internal.init;

import net.minecraft.launchwrapper.Launch;
import org.spongepowered.asm.launch.MixinBootstrap;
import org.spongepowered.asm.mixin.Mixins;

/**
 * Initializes the OneConfig mod.
 * <p><b>MUST BE CALLED VIA AN ITWEAKER / FMLLOADINGPLUGIN FOR 1.12 AND BELOW, OR A PRELAUNCH TWEAKER FOR 1.14+ FABRIC.</b></p>
 */
@SuppressWarnings("unused")
public class OneConfigInit {

    /**
     * Initializes the OneConfig mod.
     *
     * @param args The arguments passed to the mod.
     */
    public static void initialize(String[] args) {
        Launch.blackboard.put("oneconfig.initialized", true);
        MixinBootstrap.init();
        Mixins.addConfiguration("mixins.oneconfig.json");
    }
}