RecipeColorizer
基本信息
| 属性 | 值 |
|---|---|
| 类名 | pl.asie.lib.util.color.RecipeColorizer |
| 类型 | class implements IRecipe |
| 方法数 | 4 |
| 源码规模 | 129 行 |
| 注册 | RecipeSorter.register("asielib:colorizer", ..., SHAPELESS, "after:forge:shapelessore") |
| 启用版本 | 1.7.10 |
功能
无序合成配方:把任意颜色的「染料类物品 + 目标物品」染成指定颜色。 这是本 mod 唯一会新增游戏内合成行为的部分。
实现要点
- 在
AsieLibMod.init第 130-134 行注册,排序为after:forge:shapelessore。 - 129 行 / 4 个方法:
matches/getCraftingResult/getRecipeSize/getRecipeOutput。 - 配套的
RecipeDecolorizer注册为after:asielib:colorizer(第 135-139 行),顺序被显式约束。 - 配套
ItemColorizer负责把 NBT 里的颜色值写回物品 tooltip。 IColorable(util/internal/)是「可染色」标记接口。
相关条目
- RecipeDecolorizer - 去色配方,排序在其后
- ItemColorizer - NBT 颜色读写
- AsieLibMod - 配方注册方
- CraftingTweaker - 配方改写工具