diff options
author | inglettronald <71849533+inglettronald@users.noreply.github.com> | 2022-09-23 01:37:06 -0500 |
---|---|---|
committer | inglettronald <71849533+inglettronald@users.noreply.github.com> | 2022-09-23 01:37:06 -0500 |
commit | cfcdcda458b2fe9fbe33bb81759dfd4e4fb3bcc0 (patch) | |
tree | 520c920b1ac2ec334d71f1a71360a3a282f5ee4c /src/main/java | |
download | DulkirMod-cfcdcda458b2fe9fbe33bb81759dfd4e4fb3bcc0.tar.gz DulkirMod-cfcdcda458b2fe9fbe33bb81759dfd4e4fb3bcc0.tar.bz2 DulkirMod-cfcdcda458b2fe9fbe33bb81759dfd4e4fb3bcc0.zip |
Initial commit
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/example/ExampleMod.java | 13 | ||||
-rw-r--r-- | src/main/java/com/example/mixin/MixinGuiMainMenu.java | 16 |
2 files changed, 29 insertions, 0 deletions
diff --git a/src/main/java/com/example/ExampleMod.java b/src/main/java/com/example/ExampleMod.java new file mode 100644 index 0000000..0e6967a --- /dev/null +++ b/src/main/java/com/example/ExampleMod.java @@ -0,0 +1,13 @@ +package com.example; + +import net.minecraft.init.Blocks; +import net.minecraftforge.fml.common.Mod; +import net.minecraftforge.fml.common.event.FMLInitializationEvent; + +@Mod(modid = "examplemod", version = "1.0.0") +public class ExampleMod { + @Mod.EventHandler + public void init(FMLInitializationEvent event) { + System.out.println("Dirt: " + Blocks.dirt.getUnlocalizedName()); + } +} 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!"); + } +} |