diff options
author | nea <nea@nea.moe> | 2023-11-01 14:02:59 +0100 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-11-01 14:02:59 +0100 |
commit | d5253dc5c3ae7b2cc1fcb96780e43b929a449eb4 (patch) | |
tree | 478973510c9d7eda999b8321a07f34691ba56e8b /src/main/java/moe/nea/modernjava/launch/FCPMixinAwareTweaker.java | |
download | ModernJavaLauncher-d5253dc5c3ae7b2cc1fcb96780e43b929a449eb4.tar.gz ModernJavaLauncher-d5253dc5c3ae7b2cc1fcb96780e43b929a449eb4.tar.bz2 ModernJavaLauncher-d5253dc5c3ae7b2cc1fcb96780e43b929a449eb4.zip |
Initial commit
Diffstat (limited to 'src/main/java/moe/nea/modernjava/launch/FCPMixinAwareTweaker.java')
-rw-r--r-- | src/main/java/moe/nea/modernjava/launch/FCPMixinAwareTweaker.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/main/java/moe/nea/modernjava/launch/FCPMixinAwareTweaker.java b/src/main/java/moe/nea/modernjava/launch/FCPMixinAwareTweaker.java new file mode 100644 index 0000000..585e943 --- /dev/null +++ b/src/main/java/moe/nea/modernjava/launch/FCPMixinAwareTweaker.java @@ -0,0 +1,28 @@ +package moe.nea.modernjava.launch; + +import net.minecraft.launchwrapper.ITweaker; +import net.minecraft.launchwrapper.LaunchClassLoader; + +import java.io.File; +import java.util.List; + +public class FCPMixinAwareTweaker implements ITweaker { + @Override + public void acceptOptions(List<String> args, File gameDir, File assetsDir, String profile) { + } + + @Override + public void injectIntoClassLoader(LaunchClassLoader classLoader) { + classLoader.registerTransformer("moe.nea.modernjava.launch.transform.TransObjectHolderRef"); + } + + @Override + public String getLaunchTarget() { + return null; + } + + @Override + public String[] getLaunchArguments() { + return new String[0]; + } +} |