Modern-Chunk-Detector/remappedSrc/modern_chunk_detector/mixin/ExampleMixin.java

15 lines
521 B
Java
Raw Permalink Normal View History

2024-08-04 11:11:18 +00:00
package modern_chunk_detector.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
}
}