summaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/kowalski/mixin/MixinGuiMainMenu.java
blob: 4ddc1b4039cd9c9ff3ef41043605a28a9473fc0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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!");
    }
}