CraftingItem
基本信息
| 属性 | 值 |
|---|---|
| 类名 | mantle.items.abstracts.CraftingItem |
| 类型 | class extends Item |
| 字段 | modTexPrefix、textureNames |
| 启用版本 | 1.7.10 |
功能
支持多个贴图(按物品伤害切换)的物品基类。
Manual 就继承它。
实现要点
textureNames是String[],modTexPrefix是资源域前缀,最终拼成textures/items/<prefix>_<name>.png一类的路径。- 本 mod 未注册任何子类实例;它纯粹是给依赖方用的基类。
- 同包下另有
IDebugItem(标记接口)与ItemUtils(工具类),见 util 维度。
相关条目
- Manual - 唯一的子类
- IDebugItem - 同包标记接口
- ItemUtils - 同包工具类