Source item geometry v15
本页目录
本文对应 1.21.10 现代框架。文档中的接口与配置按当前文档快照核对;完整框架仍在开发验收。接口可编译、配置可解析与游戏内效果验证分别记录。
Decision: ADR-027(源码配套资料). Progress: R4 itemGeometrySlice in the delivery ledger.
Declare ModelPlan schema 15 and capability model_source_item_geometry_v15 together with the existing item/source capabilities. Use the existing ModelService.Owner or domains.model.items profile:
{"renderer":"source_item","resource":"example:models/item.model.json","renderHitbox":false}
The optional boolean controls only the own geometry of source bones whose normalized ASCII letter/digit name is hitbox. Their children, pose, animation and grip remain intact. Missing matching bones are harmless. Filtering every visible triangle is valid and does not restore the native item. GUI rest bounds and world/hand bounds reflect the filtered geometry. A separate configured guiIcon retains its own rendering.
Omitting the field preserves all old modern source-item defaults and canonical plan digests. Explicit true and false both require schema 15 and the new capability. Non-booleans and the same field on unsupported renderers are rejected before replacement. A complete profile patch prepares the new view; failed preparation retains the prior valid view.
V1 skull-item conversion must explicitly write its effective renderHitbox, normally false. Scored skull selection, transient item actions and Java default-stack/GROUND display are independent contracts; this field does not imply them. Collision, damage and inventory facts remain outside this display setting.
V1 measured GUI bounds before its transient skull mask. The filtered V2 GUI fit can differ; migration must compensate with explicit GUI transforms or diagnose that difference instead of claiming identical framing.