VoxelMapWaypointManager

VoxelMap 路点管理(死代码)

基本信息

属性 值
路径 com.gtnewhorizons.navigator.api.voxelmap.VoxelMapWaypointManager
行数 75
父类 WaypointManager(25 行)
状态 无任何调用点(死代码)

死代码的证据

检查 结果
SupportedMods 枚举 无 VoxelMap 值(只有 JourneyMap / XaeroWorldMap / XaeroMiniMap / NONE)
Mixins 6 个构建器 无 VoxelMap
TargetedMod 3 个常量 无 VoxelMap
dependencies.gradle 有 compileOnly(deobfCurse('voxelmap-225179:2462146'))
api/voxelmap/ 包 只有本类(无 renderers / rendersteps 子包)

⚠️ 唯一「有依赖、无框架接入」的模组 —— 依赖拉进来了、类也写了(75 行), 但没进 SupportedMods、 没有 Mixin、 没有 renderers/ 或 rendersteps/ 子包。

与 README 的一致

README.md 列出的支持列表里 VoxelMap 后面标注 (Limited support) —— 而「limited」的具体体现就是: 只有路点管理这一个类,没有图层 / 渲染 / mixin 接入。

见分类页缺陷 6。

75 行做什么

实现 WaypointManager 的 3 个抽象方法:

方法 父类行
clearActiveWaypoint() :18-19
updateActiveWaypoint(Waypoint) :21-22
hasWaypoint() :24-25

⚠️ 75 行比 JM6(64 行)与 Xaero(83 行)都接近 —— 说明它是认真写的,不是半成品。

四个实现的最终对照

类 行 目标 状态
JMWaypointManager 65 JM5 已废弃
JourneyMapV6WaypointManager 64 JM6 活动
本类 75 VoxelMap 死代码
XaeroWaypointManager 83 Xaero 活动

⚠️ 唯一为死代码写了 75 行—— 本可以省下 75 行,但 VoxelMap 支持被列为 roadmap / 预留。

api 包的三个地图目录

包 行数合计 状态
api/journeymap/ 314(6 类) 5 废弃 + 1 活动
api/xaero/ 400(7 类) 全部活动
api/voxelmap/ 75(1 类) 死代码

⚠️ 三类地图的 api 目录成熟度依次下降: JourneyMap 有完整但废弃的 6 类 → Xaero 有完整的 7 类 → VoxelMap 只有 1 类。

相关