diff options
author | nea <romangraef@gmail.com> | 2022-10-06 20:40:09 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-08-08 12:50:21 +0200 |
commit | 80ef02479b4119a5a4b5e99bf05bd948170bd5b3 (patch) | |
tree | 0caa3553615f4f0570297d90b0e7c25a41819faf /src/main/kotlin/com/example/mixin | |
parent | c1dabe37d8b43d90a682edde797df9b278ec4a47 (diff) | |
download | forge1.8.9template-kotlin.tar.gz forge1.8.9template-kotlin.tar.bz2 forge1.8.9template-kotlin.zip |
Add kotlin to templatekotlin
Diffstat (limited to 'src/main/kotlin/com/example/mixin')
-rw-r--r-- | src/main/kotlin/com/example/mixin/MixinGuiMainMenu.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/kotlin/com/example/mixin/MixinGuiMainMenu.java b/src/main/kotlin/com/example/mixin/MixinGuiMainMenu.java new file mode 100644 index 0000000..47eee87 --- /dev/null +++ b/src/main/kotlin/com/example/mixin/MixinGuiMainMenu.java @@ -0,0 +1,16 @@ +package com.example.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!"); + } +} |