top.hendrixshen.magiclib.language.mixin.MixinMinecraft Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of magiclib-1_14_4 Show documentation
Show all versions of magiclib-1_14_4 Show documentation
To beat magic with magic :(
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