create_catalyst_frame-1.0.1-Neo1.21.1.jar
Curse Maven Snippet
What's new
New features
- Multi-attribute catalysts: one piece of contents can now match several fan processing types at once instead of only the first hit. Up to 4 types take effect; items are processed by the highest-priority type that has a matching recipe, while entities are affected by every matched type.
- Catalyst detection by behaviour, not naming: the frame now runs each processing type's own
isValidAtagainst a disguised probe position, so catalysts that only compare blocks or block states (e.g. a snow-golem freezing chamber) are recognised without any tag orfan_processing_catalysts/*naming. - Third-party catalyst support: tags queried during the probe are captured per processing type, and blocks compared via
BlockEntry#hasare recorded as well, so catalyst types added by other mods work out of the box.
Fixes
- Contents orientation is now constant relative to the frame: burner-type contents (blaze burner, snow-golem freezing chamber) are rendered at the block's default facing, so they no longer remember the direction the player was looking when inserting them. Saved states are untouched, so existing worlds are corrected automatically.
- Shadows on contents removed: contents are drawn through the block's own render types instead of entity render types, and the light factor is folded into vertex colours. Faces with
"shade": falseare now fully unshaded, while"shade": truefaces look exactly like a block placed in the world. - Blaze / creature layer rendered: the blaze cage model only contains the iron cage, so the blaze (and the creature inside a freezing chamber) is now drawn on top instead of showing an empty cage.
- Contents without a block model fixed: blocks whose contents have no baked model (e.g. skulls) are no longer invisible.
- Filled freezing chambers no longer treated as empty: the insertion state is now obtained through the item's own
getStateForPlacementwith the real right-click context, instead of assuming only blaze burners carry contents. - Create's own blaze burner is distinguished from subclasses: only
AllBlocks.BLAZE_BURNERis resolved by heat level; subclasses that reuseHEAT_LEVEL(snow-golem freezing chamber) go through normal detection and keep their own item mapping. - No more crash on belts / saved items: multi-type frames hand the actually processing sub-type to Create's belt and item-entity logic, so the non-registered composite type is never written into saved data.
Performance & robustness
- Cheap probing hooks: each
Levelinjection performs a single probe read instead of a flag check plus a read, keeping the hotgetBlockState/getFluidState/getBlockEntitypaths near zero-cost. - Caching: block-state→type results, block tint, and per-render-type quad lists are cached and invalidated on tag reload; render-time fluid contents are read without copying.
- Renderer safety: temporary block entities are reused per state (fixing a high-frequency jitter caused by a changing identity hash used as animation phase), the level reference is attached only during drawing, and failing third-party renderers are recorded once instead of spamming exceptions every frame.
- Multi-type selection cache: 20-tick TTL, 32-entry LRU, invalidated when the recipe manager instance changes.
新增功能
- 多重特性触媒:同一内容物可以同时命中多个鼓风机处理类型,而不再只取第一个。最多 4 个类型生效:物品由优先级最高且有对应配方的类型加工,实体则受全部命中类型影响。
- 按行为判定触媒,不依赖命名:框架会把探测位置伪装成待判定方块,直接运行各类型自己的
isValidAt,因此只比对方块或方块状态的触媒(如雪傀儡冷冻室)无需任何标签或fan_processing_catalysts/*命名即可识别。 - 第三方触媒兼容:探测期间会按处理类型捕获被查询的标签,并记录通过
BlockEntry#has比对的方块,其他模组新增的触媒类型开箱即用。
修复
- 内容物朝向相对框架恒定:燃烧室系内容物(烈焰人燃烧室、雪傀儡冷冻室)统一按方块默认朝向渲染,不再“记住”插入时玩家的朝向。不改写存档状态,旧存档自动纠正。
- 内容物阴影消除:内容物改走方块自身的渲染通道而非实体通道,并把光照系数乘进顶点颜色。
"shade": false的面完全不受方向性明暗影响,"shade": true的面与放在世界里的方块观感一致。 - 烈焰人/生物层补齐:铁笼模型只含笼体,现额外绘制其中的烈焰人(及冷冻室内的生物),不再是一个空笼子。
- 无方块模型内容物可见:头颅这类没有烘焙模型的内容物不再不可见。
- 有内容的冷冻室不再被当成空的:插入时改用物品自身的
getStateForPlacement与真实右键上下文获取状态,不再假设只有烈焰人燃烧室带内容。 - 区分 Create 自己的燃烧室与子类:仅
AllBlocks.BLAZE_BURNER按热量等级解析;复用HEAT_LEVEL的子类(雪傀儡冷冻室)走正常探测,并保留自己的物品映射。 - 传送带与存档不再崩溃:多重触媒框架把真正加工的子类型交给 Create 的传送带与物品实体逻辑,未注册的合成类型不会被写进存档数据。
性能与健壮性
- 低开销探测钩子:每个
Level注入点只做一次探测读取,取代“开关判断 + 读取”,让高频的getBlockState/getFluidState/getBlockEntity路径接近零成本。 - 缓存:方块状态到类型的结果、方块染色、按渲染类型的面列表均缓存并在标签重载时失效;渲染读取流体内容不再拷贝。
- 渲染安全:临时方块实体按状态复用(修复因 identity hash 变化被当作动画相位导致的高频抖动),世界引用仅在绘制期间挂上,第三方渲染器失败只记录一次而不逐帧刷异常。
- 多类型选择缓存:20 tick 有效期、32 条目 LRU,配方表实例变化时立即失效。
This mod has no additional files

