HeartBlinkFix Patcher

基本信息

恢复客户端血量变化时的心形闪烁渲染。来源:BugfixMod / williewillus。 配置开关 clientHeartBlinkFix(默认 true)。

目标

项 值
补丁名 HeartBlinkFix
目标类 net/minecraft/client/entity/EntityPlayerSP
目标方法 EntityPlayerSP.setPlayerSPHealth
描述符 (F)V
SRG func_71150_b

平台限制

专用服务器(<mcLocation>/saves 不存在)下被强制关闭并落盘。

与 HeartFlashFix 的关系

两者是不同修复,可同时启用:

补丁 目标 SRG
本条目 HeartBlinkFix EntityPlayerSP.setPlayerSPHealth func_71150_b
HeartFlashFix EntityClientPlayerMP.attackEntityFrom func_70097_a

映射表中 func_71150_b 在两个条件下都可能被写入 (HeartBlinkFixEnabled 与 HeartFlashFixEnabled 分支各写一次), 而 HeartFlashFix 分支还额外登记 EntityClientPlayerMP.setPlayerSPHealth (同名 MCP 名、同 SRG 名)。

源码里还有一个 HeartFlashFixCompatPatcher 的 if 块, 但整块被注释掉(BugfixModClassTransformer.java:287-297), 该补丁未注册,详见 BugfixMod Class Transformer。

相关条目

源码

  • src/main/java/pl/asie/foamfix/bugfixmod/coremod/patchers/HeartBlinkFixPatcher.java