top.hendrixshen.magiclib.mixin.minecraft.event.DedicatedServerMixin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of magiclib-minecraft-api-1.19.3-fabric Show documentation
Show all versions of magiclib-minecraft-api-1.19.3-fabric Show documentation
Unleash magic into Minecraft, infuse souls, ascend to heaven!
package top.hendrixshen.magiclib.mixin.minecraft.event;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.class_3176;
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.CallbackInfoReturnable;
import top.hendrixshen.magiclib.impl.event.EventManager;
import top.hendrixshen.magiclib.impl.event.minecraft.DedicatedServerEvent.PostInitEvent;
@Environment(EnvType.SERVER)
@Mixin(class_3176.class)
public class DedicatedServerMixin {
@Inject(
method = "initServer",
at = @At(
"TAIL"
)
)
private void postInitServer(CallbackInfoReturnable cir) {
EventManager.dispatch(new PostInitEvent());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy