From aef074886b587745bd814fe965d55e7b4cf11a07 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Thu, 22 Feb 2024 22:05:15 +0100 Subject: Add event cancellation watcher --- .../moe/nea/kowalski/init/KowalskiTweaker.java | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/main/java/moe/nea/kowalski/init/KowalskiTweaker.java (limited to 'src/main/java/moe/nea/kowalski/init/KowalskiTweaker.java') diff --git a/src/main/java/moe/nea/kowalski/init/KowalskiTweaker.java b/src/main/java/moe/nea/kowalski/init/KowalskiTweaker.java new file mode 100644 index 0000000..4cb836c --- /dev/null +++ b/src/main/java/moe/nea/kowalski/init/KowalskiTweaker.java @@ -0,0 +1,29 @@ +package moe.nea.kowalski.init; + +import net.minecraft.launchwrapper.ITweaker; +import net.minecraft.launchwrapper.LaunchClassLoader; + +import java.io.File; +import java.util.List; + +public class KowalskiTweaker implements ITweaker { + @Override + public void acceptOptions(List args, File gameDir, File assetsDir, String profile) { + + } + + @Override + public void injectIntoClassLoader(LaunchClassLoader classLoader) { +classLoader.registerTransformer("moe.nea.kowalski.init.EventClassTransformer"); + } + + @Override + public String getLaunchTarget() { + return null; + } + + @Override + public String[] getLaunchArguments() { + return new String[0]; + } +} -- cgit