aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/world/anhgelus
diff options
context:
space:
mode:
authoranhgelus <anhgelus.morhtuuzh@proton.me>2024-07-25 17:08:31 +0000
committeranhgelus <anhgelus.morhtuuzh@proton.me>2024-07-25 17:08:31 +0000
commitaef1027f24ad8d871fe11b88a9e4b4f51af620cf (patch)
treed7830af9b911f0f8caf876a7e6a4dd8101da11d9 /src/main/java/world/anhgelus
Initial commit
Diffstat (limited to 'src/main/java/world/anhgelus')
-rw-r--r--src/main/java/world/anhgelus/manhunt/Manhunt.java19
-rw-r--r--src/main/java/world/anhgelus/manhunt/mixin/ExampleMixin.java15
2 files changed, 34 insertions, 0 deletions
diff --git a/src/main/java/world/anhgelus/manhunt/Manhunt.java b/src/main/java/world/anhgelus/manhunt/Manhunt.java
new file mode 100644
index 0000000..f7037b9
--- /dev/null
+++ b/src/main/java/world/anhgelus/manhunt/Manhunt.java
@@ -0,0 +1,19 @@
+package world.anhgelus.manhunt;
+
+import net.fabricmc.api.ModInitializer;
+
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
+
+public class Manhunt implements ModInitializer {
+ // This logger is used to write text to the console and the log file.
+ // It is considered best practice to use your mod id as the logger's name.
+ // That way, it's clear which mod wrote info, warnings, and errors.
+ public static final Logger LOGGER = LogManager.getLogger("manhunt");
+ public static final String MOD_ID = "manhunt";
+
+ @Override
+ public void onInitialize() {
+
+ }
+} \ No newline at end of file
diff --git a/src/main/java/world/anhgelus/manhunt/mixin/ExampleMixin.java b/src/main/java/world/anhgelus/manhunt/mixin/ExampleMixin.java
new file mode 100644
index 0000000..f3263af
--- /dev/null
+++ b/src/main/java/world/anhgelus/manhunt/mixin/ExampleMixin.java
@@ -0,0 +1,15 @@
+package world.anhgelus.manhunt.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