diff options
author | Roman / Linnea Gräf <roman.graef@gmail.com> | 2023-07-21 12:15:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 12:15:37 +0200 |
commit | 2c7e371cb8d566875d767dd20c4a1287d5275b2c (patch) | |
tree | 593b568f15ac5de7cbced5519f8850a37ea7aba7 /src/main/java/com/example/mixin/MixinGuiMainMenu.java | |
download | SkyblockPlayersAnonymous-2c7e371cb8d566875d767dd20c4a1287d5275b2c.tar.gz SkyblockPlayersAnonymous-2c7e371cb8d566875d767dd20c4a1287d5275b2c.tar.bz2 SkyblockPlayersAnonymous-2c7e371cb8d566875d767dd20c4a1287d5275b2c.zip |
Initial commit
Diffstat (limited to 'src/main/java/com/example/mixin/MixinGuiMainMenu.java')
-rw-r--r-- | src/main/java/com/example/mixin/MixinGuiMainMenu.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/java/com/example/mixin/MixinGuiMainMenu.java b/src/main/java/com/example/mixin/MixinGuiMainMenu.java new file mode 100644 index 0000000..47eee87 --- /dev/null +++ b/src/main/java/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!"); + } +} |