mirror of
https://github.com/Astatin3/MC-server-icon.git
synced 2026-06-08 16:18:03 -06:00
15 lines
511 B
Java
15 lines
511 B
Java
|
|
package com.example.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
|
||
|
|
}
|
||
|
|
}
|