AppleCoreLoadingPugin

基本信息

属性 值
类名 squeek.applecore.mixinplugin.AppleCoreLoadingPugin
类型 class implements IFMLLoadingPlugin, IEarlyMixinLoader
注解 @IFMLLoadingPlugin.MCVersion("1.7.10")
挂载配置 mixins.AppleCore.early.json
启用版本 Minecraft 1.7.10

功能

FML 核心加载插件,在 mod 容器构造之前就介入,负责挂载 early 阶段的 Mixin。

实现要点

  • 5 个 IFMLLoadingPlugin 回调中 4 个返回 null (getASMTransformerClass / getModContainerClass / getSetupClass / getAccessTransformerClass),injectData 为空实现。 即不使用 ASM transformer、不设 setup 类、无 AT。
  • 唯一实际返回值的是 getMixinConfig() → mixins.AppleCore.early.json。
  • getMixins(Set<String> loadedCoreMods) 委托给 IMixins.getEarlyMixins(Mixins.class, loadedCoreMods), 由 Mixins 枚举按目标 mod 决定实际内容。

[!NOTE] 类名拼写 类名是 AppleCoreLoadingPugin(Pugin,缺一个 l), 且 gradle.properties 的 coreModClass 与源码文件名一致地沿用了这个拼写。 引用时必须照抄这个拼写。

相关条目