aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/potatocrime/mixin/ExampleMixin.java
blob: 79e4299f98dfbd101caa39bea75bbb2ffb396a6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
	}
}