血肉 TNT 实体
基本信息
| 属性 | 值 |
|---|---|
| 类 | EntityBloodTNT |
| 实体名 | bloodTNT |
| 追踪范围 | 64 |
| 更新频率 | 100 |
| 是否可刷怪蛋 | true |
| 注册位置 | CommonProxy.java:30 |
注册
EntityRegistry.registerModEntity(EntityBloodTNT.class, "bloodTNT", entityID,
BloodArsenal.instance, 64, 100, true);
另在 CommonProxy.java:28 先用
EntityRegistry.registerGlobalEntityID(EntityBloodTNT.class, "bloodTNT", entityID)
注册全局 ID——同一实体连续注册了两次(先 global 后 mod)。
已知缺陷
- 同实体双重注册:
:28与:30对EntityBloodTNT各注册一次。 先registerGlobalEntityID再registerModEntity会造成 ID 重复占用, 属实现冗余。 EntityBloodHound注册被注释:CommonProxy.java:31整行被注释:
因此血犬实体在本版本中不存在。注意其实体名首字母大写 (// EntityRegistry.registerModEntity(EntityBloodHound.class, "BloodHound", 3, ...)BloodHound),与实际注册的bloodTNT命名风格不一致—— 属于未完成的遗留代码,不要写成「本 mod 有两个实体」。
相关条目
- 血肉 TNT - 生成该实体的方块