All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.hendrixshen.magiclib.language.mixin.MixinMinecraft Maven / Gradle / Ivy

There is a newer version: 0.7.398+fe2125a-beta
Show newest version
package top.hendrixshen.magiclib.language.mixin;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.class_310;
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;
import top.hendrixshen.magiclib.language.impl.MagicLanguageManager;

@Environment(EnvType.CLIENT)
@Mixin(class_310.class)
public class MixinMinecraft {
    @Inject(
            //#if MC > 11404
            //$$ method = "",
            //#else
            method = "init",
            //#endif
            at = @At(
                    value = "RETURN"
            )
    )
    //#if MC > 11404
    //$$ private void afterInit(GameConfig gameConfig, CallbackInfo ci) {
    //#else
    private void afterInit(CallbackInfo ci) {
    //#endif
        MagicLanguageManager.INSTANCE.initClient();
        class_310.method_1551().method_1526().method_14491(class_310.method_1551().method_1478());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy