Error Sensor Cover
基本信息
| 属性 | 值 |
|---|---|
| 注册名 | gendustry:ErrorSensorCover |
| 注册方式 | Items.regItem(ErrorSensorCover)(Items.scala:63) |
| 类 | net.bdew.gendustry.items.covers.ErrorSensorCover |
| 本地化键 | item.gendustry.ErrorSensorCover.name(简中语言文件未翻译,原文 Error Sensor Cover) |
| 图标 | gendustry:covers/error,激活时切换为 itemIconOn |
| 物品 NBT | sensor(字符串,传感器 ID) |
| 是否 tick | 否(isCoverTicking = false) |
功能
错误传感器盖板把 Forestry 的机器错误状态转成红石信号,可贴在任何实现 IErrorLogicSource 的方块上 —— 主要是 Industrial Apiary。
- 安装时默认选中第一个传感器(
ErrorSensors.sensors.head,即ErrorSensorAnyError),并在聊天栏提示 “Will emit redstone signal if Any Error is detected” 与 “(Click cover with empty hand to change)” - 用空手点击盖板切换到下一个传感器
- 拆除时
onRemove调clearErrorSensor,清空 NBT 归还为无配置状态 isEmittingSignal读 NBT 里的sensor查表,命中且sensor.isActive(tile)为真时输出红石信号- 简中语言文件里
gendustry.upgrades.scrubber.name与item.gendustry.ErrorSensorCover.name均未翻译,仍是英文
可选传感器
ErrorSensors.sensors = List(ErrorSensorAnyError, ErrorSensorNoError) ++ (...),共 14 种:
| ID | 判定 |
|---|---|
anyError |
!te.getErrorLogic.hasErrors 为假时激活(即有任意错误) |
noError |
无任何错误 |
Forestry:invalidBiome |
错误状态包含该项 |
Forestry:isRaining |
同上 |
Forestry:notGloomy |
同上 |
Forestry:notLucid |
同上 |
Forestry:notDay |
同上 |
Forestry:notNight |
同上 |
Forestry:noFlower |
同上 |
Forestry:noQueen |
同上 |
Forestry:noDrone |
同上 |
Forestry:noSky |
同上 |
Forestry:noSpace |
同上 |
Forestry:noPower |
同上 |
后 12 个由 ForestryAPI.errorStateRegistry.getErrorState(name) 取得,其本地化名拼作 "for." + state.getDescription(沿用 Forestry 的翻译键前缀)。
合成配方
BRB
RQR
BRB
| 字符 | 物品 |
|---|---|
B |
OD:ingotBronze(铜锭) |
R |
minecraft:redstone |
Q |
minecraft:quartz |
相关条目
- Item Import Cover - 另一类盖板
- Item Eject Cover - 另一类盖板