aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-04-01 17:48:53 +0200
committerLinnea Gräf <nea@nea.moe>2024-04-01 17:48:53 +0200
commit0fe5e487922a6ff50b9c415b9384157fbd64b2b5 (patch)
treee62cb4b9abea80d144d95a7bd2e0114088944587 /src/main/java/moe/nea
downloadpotato-crimes-0fe5e487922a6ff50b9c415b9384157fbd64b2b5.tar.gz
potato-crimes-0fe5e487922a6ff50b9c415b9384157fbd64b2b5.tar.bz2
potato-crimes-0fe5e487922a6ff50b9c415b9384157fbd64b2b5.zip
Initial commit
Diffstat (limited to 'src/main/java/moe/nea')
-rw-r--r--src/main/java/moe/nea/potatocrime/mixin/ExampleMixin.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/moe/nea/potatocrime/mixin/ExampleMixin.java b/src/main/java/moe/nea/potatocrime/mixin/ExampleMixin.java
new file mode 100644
index 0000000..79e4299
--- /dev/null
+++ b/src/main/java/moe/nea/potatocrime/mixin/ExampleMixin.java
@@ -0,0 +1,15 @@
+package moe.nea.potatocrime.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 = "loadWorld")
+ private void init(CallbackInfo info) {
+ // This code is injected into the start of MinecraftServer.loadWorld()V
+ }
+} \ No newline at end of file