Mod 入口(Mod Entry)
基本信息
| 属性 | 值 |
|---|---|
| modid | angelicacompat |
| 显示名 | Angelica Compat |
| 版本 | Tags.VERSION(由 build 时注入) |
| 主类 | com.gtnewhorizons.angelicacompat.AngelicaCompat |
| 接受的 Minecraft 版本 | [1.7.10] |
| SidedProxy | client = com.gtnewhorizons.angelicacompat.ClientProxy<br>server = com.gtnewhorizons.angelicacompat.CommonProxy |
生命周期事件
| 事件 | 处理 |
|---|---|
preInit |
ModStatus.preInit() — 记录 isXaerosMinimapLoaded |
init |
无操作 |
postInit |
无操作 |
serverStarting |
无操作(无自定义指令) |
主类没有注册任何 Block / Item / Entity / Enchantment / Dimension / Biome / Potion / Achievement / Structure / TileEntity。
Common / Client / Server Proxy
| 类 | 行为 |
|---|---|
Common |
LogManager.getLogger("AngelicaCompat") 单例 Logger;静态初始化时打印 "Initializing AngelicaCompat" |
CommonProxy |
空类(FML 要求 @SidedProxy 必须有 client 与 server 实现) |
ClientProxy |
继承 CommonProxy,空实现(注释提示可在子类添加 client-only 注册) |
相关条目
- PatchesConfig - 配置(实际生效的 7 项开关)
- ModStatus - preInit 阶段记录的运行时标志
- AngelicaCompatCore - 真正的 ASM/Mixin 装载入口
- MixinCompatHackTweaker - 启动期反射移除 Xaeros transformer
- CompatRegistry - 中央注册表
- CompatHandlers - 4 个 mod 兼容处理器注册枚举
- AsmTransformers - 通用 ASM 转换器装载枚举