实体
基本信息
| 属性 | 值 |
|---|---|
| 注册类 | vazkii.botania.common.entity.ModEntities |
| 注册方法 | EntityRegistry.registerModEntity(...) |
| 已注册实体 | 19 个(ModEntities.init(),ModEntities.java:19-37) |
| 实体 ID 范围 | 0–18(int id = 0 起自增,ModEntities.java:21) |
| 所属实例 | Botania.instance(所有 19 个实体的第 4 参数) |
功能
19 个实体承载 Botania 的全部动态效果:法力的抛射与爆裂、妖精、盖亚守卫、末影传送物与工具等。
EntityRegistry.registerModEntity(Class, name, id, mod, trackingUpdateInterval, updateFrequency, sendsVelocityUpdates) 的后三个参数本次已逐条读取,见下表。
数值
| # | 实体类 | 注册名 | 显示名 | 追踪间隔 | 更新频率 | 发送速度更新 |
|---|---|---|---|---|---|---|
| 0 | EntityManaBurst |
botania:manaBurst |
Mana Burst | 64 | 10 | 是 |
| 1 | EntitySignalFlare |
botania:signalFlare |
Signal Flare | 2048 | 10 | 否 |
| 2 | EntityPixie |
botania:pixie |
Pixie | 16 | 3 | 是 |
| 3 | EntityFlameRing |
botania:flameRing |
Flame Ring | 32 | 40 | 否 |
| 4 | EntityVineBall |
botania:vineBall |
Vine Ball | 64 | 10 | 是 |
| 5 | EntityDoppleganger |
botania:doppleganger |
Guardian of Gaia | 128 | 3 | 是 |
| 6 | EntityMagicLandmine |
botania:magicLandmine |
Gaia Trap | 128 | 40 | 否 |
| 7 | EntitySpark |
botania:spark |
Spark | 64 | 10 | 否 |
| 8 | EntityThrownItem |
botania:thrownItem |
Thrown Item | 64 | 20 | 是 |
| 9 | EntityMagicMissile |
botania:magicMissile |
Magic Missile | 64 | 2 | 是 |
| 10 | EntityThornChakram |
botania:thornChakram |
Thorn Chakram | 64 | 10 | 是 |
| 11 | EntityCorporeaSpark |
botania:corporeaSpark |
Corporea Spark | 64 | 10 | 否 |
| 12 | EntityEnderAirBottle |
botania:enderAirBottle |
Bottle of Ender Air | 64 | 10 | 是 |
| 13 | EntityPoolMinecart |
botania:poolMinecart |
Mana Pool Minecart | 80 | 3 | 是 |
| 14 | EntityPinkWither |
botania:pinkWither |
Pink Wither | 80 | 3 | 否 |
| 15 | EntityPlayerMover |
botania:playerMover |
Luminizer Beam | 40 | 3 | 是 |
| 16 | EntityManaStorm |
botania:manaStorm |
Manastorm Epicenter | 64 | 10 | 否 |
| 17 | EntityBabylonWeapon |
botania:babylonWeapon |
Treasury Weapon | 64 | 10 | 是 |
| 18 | EntityFallingStar |
botania:fallingStar |
Falling Star | 64 | 10 | 是 |
注册顺序与参数来源:ModEntities.java:23-37(逐行对应上表 #0–#18)。注册名常量来源:LibEntityNames.java(19 个常量,均以 LibResources.PREFIX_MOD 前缀)。显示名来源:en_US.lang 的 entity.Botania.botania:* 键(19 条,与实体数一致)。
注意 4 个实体的显示名与类名不同:
EntityDoppleganger→ Guardian of Gaia(盖亚守护者)EntityMagicLandmine→ Gaia Trap(盖亚陷阱)EntityPlayerMover→ Luminizer Beam(不是PlayerMover)EntityBabylonWeapon→ Treasury Weapon
其中 EntityPlayerMover 并不在 common/entity/ 目录下,它是一个内部类:vazkii.botania.common.block.tile.TileLightRelay.EntityPlayerMover(ModEntities.java:17 的 import)。
交互
| 触发 | 行为 |
|---|---|
| 魔杖左键 | 发射 EntityManaBurst |
| 魔杖右键 | 发射 EntitySpark |
| 发射器发射魔杖 | BehaviourWand 发射 EntityThrownItem |
| 发射器发射法力池矿车 | BehaviourPoolMinecart 发射 EntityPoolMinecart |
| 盖亚仪式 | 生成 EntityDoppleganger(Guardian of Gaia),其多方块见 多方块结构 |
| Corporea 网络 | EntityCorporeaSpark 在 Corporea 终端间传递物品 |
| 服务端停止 | 无实体清理逻辑(仅法力网络清空) |
相关条目
- 多方块结构 -
gaiaRitual由EntityDoppleganger.makeMultiblockSet()定义 - 魔力方块组 - 光继电器产生
EntityPlayerMover(Luminizer Beam) - Corporea 物流 - Corporea Spark 实体对应的方块系统
- 魔力量子系统 - Mana Burst 是法力的载体