Model geometry views v31
本页目录
本文对应 1.21.10 现代框架。文档中的接口与配置按当前文档快照核对;完整框架仍在开发验收。接口可编译、配置可解析与游戏内效果验证分别记录。
ModelGeometry is optional on ModelBinding, PlayerModelBinding and EffectModelBinding. Use the existing public ModelService.Owner bind/patch/replace methods or the same fields in the profile model domain. Clients require model_geometry_v31; ModelPlan automatically selects schema 31 only for a nonempty policy.
{
"geometry": {
"hiddenNodes": ["hitbox"],
"normalized": true
}
}
Only the matching node's own geometry is omitted. Child geometry and the complete animated pose remain available to actions, equipment, hand grips, sounds, particles and effect attachments. Player arm views are restricted further, never replaced with the whole model. Attached equipment has its own ownership and remains visible. Empty results deliberately hide the model; they do not request a vanilla replacement.
hiddenNodes accepts at most 256 distinct nonblank names of at most 128 characters, with no control characters. Exact case-sensitive matching is default. normalized: true compares lower-case ASCII letters/digits, so HIT_box matches hitbox; empty normalized names are rejected. Missing names are ignored; multiple matching geometry nodes are all excluded. There is no private Java object or native API in this DTO.
In a patch, omitting geometry preserves the previous view, and geometry: null clears a patch. An empty list canonicalizes to no policy. Geometry-only updates retain actions, lifetime and animation time. They prepare a new budgeted selection before replacing the current owner plan; bad input, unavailable resources or capacity failure leave the previous plan active. Views cannot cross assets/resource generations and are released with the owning plan. A retired view suspends affected body/arm submissions between resource installation and owner re-prepare, without poisoning the new render generation.
V1 entity/player default hidden hitbox geometry is represented explicitly during migration. V1 effects used full geometry. Geometry selection is presentation only and does not add collision, damage or hit-intent authority. See ADR-043(源码配套资料); native acceptance and remaining work are recorded in delivery tasks(源码配套资料).