diff options
author | nea <nea@nea.moe> | 2023-11-01 18:50:11 +0100 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-11-01 18:50:11 +0100 |
commit | 297cb01f220a617dd08096467978b2fccbc27695 (patch) | |
tree | d467f358313ce3648063da41b66361a840fa7864 /src/main/java/moe/nea/modernjava/launch/live | |
parent | d5253dc5c3ae7b2cc1fcb96780e43b929a449eb4 (diff) | |
download | ModernJavaLauncher-297cb01f220a617dd08096467978b2fccbc27695.tar.gz ModernJavaLauncher-297cb01f220a617dd08096467978b2fccbc27695.tar.bz2 ModernJavaLauncher-297cb01f220a617dd08096467978b2fccbc27695.zip |
Add documentation
Diffstat (limited to 'src/main/java/moe/nea/modernjava/launch/live')
-rw-r--r-- | src/main/java/moe/nea/modernjava/launch/live/FCPFixTweaker.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/main/java/moe/nea/modernjava/launch/live/FCPFixTweaker.java b/src/main/java/moe/nea/modernjava/launch/live/FCPFixTweaker.java new file mode 100644 index 0000000..a5bf648 --- /dev/null +++ b/src/main/java/moe/nea/modernjava/launch/live/FCPFixTweaker.java @@ -0,0 +1,32 @@ +package moe.nea.modernjava.launch.live; + +import moe.nea.modernjava.launch.transform.TransObjectHolderRef; +import net.minecraft.launchwrapper.ITweaker; +import net.minecraft.launchwrapper.LaunchClassLoader; + +import java.io.File; +import java.util.List; + +/** + * Tweaker class to inject {@link TransObjectHolderRef} + */ +public class FCPFixTweaker 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]; + } +} |