blob: 0cede967de6449b44c0001acb38a1cd2b69d3fc0 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
package at.hannibal2.skyhanni.tweaker;
import net.minecraft.launchwrapper.ITweaker;
import net.minecraft.launchwrapper.Launch;
import net.minecraft.launchwrapper.LaunchClassLoader;
import org.spongepowered.asm.launch.MixinTweaker;
import java.io.File;
import java.util.List;
@SuppressWarnings("unused")
public class SkyHanniTweaker implements ITweaker {
public SkyHanniTweaker() {
DownloadSourceChecker.init();
}
@Override
@SuppressWarnings("unchecked")
public void acceptOptions(List<String> args, File gameDir, File assetsDir, String profile) {
List<String> tweakClasses = (List<String>) Launch.blackboard.get("TweakClasses");
tweakClasses.add(MixinTweaker.class.getName());
tweakClasses.add(ModLoadingTweaker.class.getName());
}
@Override
public void injectIntoClassLoader(LaunchClassLoader classLoader) {
}
@Override
public String getLaunchTarget() {
return null;
}
@Override
public String[] getLaunchArguments() {
return new String[0];
}
}
|