Lapis Aetherius(青金石染色方块)
基本信息
| 属性 | 值 |
|---|---|
| 注册名 | utilitiesinexcess:lapis_aetherius / utilitiesinexcess:lapis_aetherius_dyeable |
| 类 | BlockLapisAetherius(extends Block)/ BlockLapisAetheriusDyable(extends BlockColored) |
| 注册方块数 | 2 |
| meta 数 | 固定版 16 色(0–15);染色版 1 个任意色变体 |
| 共享 ItemBlock | 两者都用 BlockLapisAetherius.ItemLapisAetherius(ModBlocks.java:119-120) |
| 开关 | BlockConfig.enableLapisAetherius(默认 true) |
功能
Lapis Aetherius 是本模组的"染色方块旗舰":它有两套并存的实现。
- 固定版
lapis_aetherius:16 个 meta 各对应一种预设颜色,颜色带拉丁文命名(如Lapis Aetherius Flammeus (Orange)),并额外提供一套aliases别名(Lapis Caelestis Aurantiacus (Orange)等,en_US.lang)供 NEI 搜索。 - 染色版
lapis_aetherius_dyeable:继承BlockColored,只有一个"任意颜色"变体,颜色完全由油漆滚筒刷入。
染色版的注册受 EndlessIDs 门控:LAPIS_AETHERIUS_DYEABLE 的条件是 BlockConfig.enableLapisAetherius && BlockColored.allowDyingBlocks()(ModBlocks.java:120),而 allowDyingBlocks() 要求 Mods.EndlessIDs.isLoaded() && enablePaintRoller && enableDying(BlockColored.java:151-154)。没有安装 EndlessIDs 时,染色版不注册,固定版不受影响。
本模组中唯一申请了 ISBRH 独立渲染 ID 的方块是 LAPIS_AETHERIUS:CommonProxy.preInit 在启用时调用 RenderingRegistry.getNextAvailableRenderId() 并注册 LapisAetheriusRenderer(CommonProxy.java:77-80)。
数值
固定版 16 色
| meta | 显示名 | 常用简称 |
|---|---|---|
| 0 | Lapis Aetherius Candidus (White) | White |
| 1 | Lapis Aetherius Flammeus (Orange) | Orange |
| 2 | Lapis Aetherius Fucatus (Magenta) | Magenta |
| 3 | Lapis Aetherius Coeruleus (Light Blue) | Light Blue |
| 4 | Lapis Aetherius Aureus (Yellow) | Yellow |
| 5 | Lapis Aetherius Chlorinus (Lime) | Lime |
| 6 | Lapis Aetherius Floreus (Pink) | Pink |
| 7 | Lapis Aetherius Canus (Gray) | Gray |
| 8 | Lapis Aetherius Argenteus (Light Gray) | Light Gray |
| 9 | Lapis Aetherius Aqua (Cyan) | Cyan |
| 10 | Lapis Aetherius Violaceus (Purple) | Purple |
| 11 | Lapis Aetherius Venetus (Blue) | Blue |
| 12 | Lapis Aetherius Brunneus (Brown) | Brown |
| 13 | Lapis Aetherius Smaragdinus (Dark Green) | Dark Green |
| 14 | Lapis Aetherius Sanguineus (Red) | Red |
| 15 | Lapis Aetherius Ater (Black) | Black |
显示名来源:en_US.lang 的 tile.lapis_aetherius.<meta>.name;别名来源:同文件 tile.lapis_aetherius.<meta>.aliases。
依赖
| 依赖 | 级别 | 用途 |
|---|---|---|
| GTNHLib | 硬 | @Mod 声明 required-after:gtnhlib@[0.11.23,) |
| ModularUI2 | 硬(Gradle implementation) |
GUI 框架 |
| CoFH Energy API | 硬(Gradle implementation) |
能源接口 |
| EndlessIDs | 软 | 仅染色版需要;dependencies.gradle 中为 compileOnly |
| 油漆滚筒 | — | 染色操作,物品本身在本模组内 |
交互
| 触发 | 行为 |
|---|---|
| 放置固定版 | meta 0–15 决定颜色 |
| 放置染色版 | 使用 meta 0b0_11111_11111_11111 的"任意颜色"物品形态 |
| 油漆滚筒右键 | 把当前颜色刷到目标方块(RecipePaintRollerToPaint) |
| NEI 搜索 | 可用 16 个拉丁别名检索固定版 |
合成配方
固定版与染色版共用 RecipeConfig.enableLapisAetheriusRecipes(默认 true),配方在 RecipeLoader.loadLapisAetheriusRecipes() 中注册。meta 5(Lime)是最常用的原料——真绿幕 与智能泵配方都取 meta 5。