summaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/kowalski/mixin
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-02-22 21:23:38 +0100
committerLinnea Gräf <nea@nea.moe>2024-02-22 21:23:38 +0100
commite8196b0b5e02ec21f75109ab7aba8d48220c8d05 (patch)
treed612293d68050e75385ed9c3cd46724025b8501c /src/main/kotlin/moe/nea/kowalski/mixin
downloadKowalski-e8196b0b5e02ec21f75109ab7aba8d48220c8d05.tar.gz
Kowalski-e8196b0b5e02ec21f75109ab7aba8d48220c8d05.tar.bz2
Kowalski-e8196b0b5e02ec21f75109ab7aba8d48220c8d05.zip
Template
Diffstat (limited to 'src/main/kotlin/moe/nea/kowalski/mixin')
-rw-r--r--src/main/kotlin/moe/nea/kowalski/mixin/MixinGuiMainMenu.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/kowalski/mixin/MixinGuiMainMenu.java b/src/main/kotlin/moe/nea/kowalski/mixin/MixinGuiMainMenu.java
new file mode 100644
index 0000000..4ddc1b4
--- /dev/null
+++ b/src/main/kotlin/moe/nea/kowalski/mixin/MixinGuiMainMenu.java
@@ -0,0 +1,16 @@
+package moe.nea.kowalski.mixin;
+
+import net.minecraft.client.gui.GuiMainMenu;
+import org.spongepowered.asm.mixin.Mixin;
+import org.spongepowered.asm.mixin.injection.At;
+import org.spongepowered.asm.mixin.injection.Inject;
+import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
+
+@Mixin(GuiMainMenu.class)
+public class MixinGuiMainMenu {
+
+ @Inject(method = "initGui", at = @At("HEAD"))
+ public void onInitGui(CallbackInfo ci) {
+ System.out.println("Hello from Main Menu!");
+ }
+}