top.hendrixshen.magiclib.mixin.language.MixinMinecraft Maven / Gradle / Ivy
package top.hendrixshen.magiclib.mixin.language;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.class_310;
import net.minecraft.class_542;
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(value = class_310.class, priority = 1001)
public class MixinMinecraft {
@Inject(
//#if MC > 11404
method = "",
//#else
//$$ method = "init",
//#endif
at = @At(
value = "RETURN"
)
)
//#if MC > 11404
private void afterInit(class_542 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