summaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/kowalski/init/KowalskiTweaker.java
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-02-22 22:05:15 +0100
committerLinnea Gräf <nea@nea.moe>2024-02-22 22:06:01 +0100
commitaef074886b587745bd814fe965d55e7b4cf11a07 (patch)
treeacc62b9aaf9f95bdce17a85683c42cbec93fe800 /src/main/java/moe/nea/kowalski/init/KowalskiTweaker.java
parente8196b0b5e02ec21f75109ab7aba8d48220c8d05 (diff)
downloadKowalski-aef074886b587745bd814fe965d55e7b4cf11a07.tar.gz
Kowalski-aef074886b587745bd814fe965d55e7b4cf11a07.tar.bz2
Kowalski-aef074886b587745bd814fe965d55e7b4cf11a07.zip
Add event cancellation watcher
Diffstat (limited to 'src/main/java/moe/nea/kowalski/init/KowalskiTweaker.java')
-rw-r--r--src/main/java/moe/nea/kowalski/init/KowalskiTweaker.java29
1 files changed, 29 insertions, 0 deletions
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<String> 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];
+ }
+}