GolemPlantManaBeanFix
基本信息
net.glease.tc4tweak.modules.manaBean —— 修复傀儡(golem)植物系
「法力豆(mana bean)」的存档问题。
2 个静态方法
| 方法 | 行 | 说明 |
|---|---|---|
saveManaBeanType(World, int x, int y, int z) |
17 | 把豆子类型写入世界存档 |
isBadManaBean(Entity) |
23 | 判定实体是否为「坏豆子」 |
为什么需要
EntityGolemBase 被 ASM 补丁 EntityGolemBaseVisitor 改写;
豆子类型若只存在内存字段,重载世界后傀儡会退化成错误形态 ——
本模块提供持久化与判定。
ASM 侧接线
thaumcraft.common.entities.golems.EntityGolemBase
→ new TransformerFactory(EntityGolemBaseVisitor::new)(无 Side.CLIENT 限制,双端生效)。
见 TC4 Transformer。
相关条目
源码
src/main/java/net/glease/tc4tweak/modules/manaBean/GolemPlantManaBeanFix.java