IComponentAdapterFactory
基本信息
| 属性 | 值 |
|---|---|
| 类名 | ...reactors.components.IComponentAdapterFactory |
| 类型 | 接口 |
| 方法数 | 1 |
| 源码规模 | 14 行 |
| 启用版本 | 1.7.10 |
功能
适配器工厂:让物品自己说出「我该用哪个适配器」,避免注册表写死映射。
实现要点
- 接口,1。
- 1 个方法。
ReactorItem与Foreign*Item都实现本接口。
相关条目
- ComponentRegistry - 注册方
| 属性 | 值 |
|---|---|
| 类名 | ...reactors.components.IComponentAdapterFactory |
| 类型 | 接口 |
| 方法数 | 1 |
| 源码规模 | 14 行 |
| 启用版本 | 1.7.10 |
适配器工厂:让物品自己说出「我该用哪个适配器」,避免注册表写死映射。
ReactorItem 与 Foreign*Item 都实现本接口。