summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/hawarth/mixin
diff options
context:
space:
mode:
authorHawarth <hawarth@hawarth.com>2026-03-14 18:39:10 +0100
committerHawarth <hawarth@hawarth.com>2026-03-14 18:39:27 +0100
commit2e79ad1b980b4867c3b32688d7946d52f5b85a62 (patch)
tree215aac8d730dcdd61aa2ac95b248f70c5ced97b8 /src/main/java/com/hawarth/mixin
downloadmc-craftsdwarfship-trunk.tar.gz
mc-craftsdwarfship-trunk.zip
chore: initHEADtrunk
Initialises the project using Fabric MC's template mod generator.
Diffstat (limited to 'src/main/java/com/hawarth/mixin')
-rw-r--r--src/main/java/com/hawarth/mixin/ExampleMixin.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/com/hawarth/mixin/ExampleMixin.java b/src/main/java/com/hawarth/mixin/ExampleMixin.java
new file mode 100644
index 0000000..2311e6a
--- /dev/null
+++ b/src/main/java/com/hawarth/mixin/ExampleMixin.java
@@ -0,0 +1,15 @@
+package com.hawarth.mixin;
+
+import net.minecraft.server.MinecraftServer;
+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(MinecraftServer.class)
+public class ExampleMixin {
+ @Inject(at = @At("HEAD"), method = "loadLevel")
+ private void init(CallbackInfo info) {
+ // This code is injected into the start of MinecraftServer.loadLevel()V
+ }
+} \ No newline at end of file