BlockBase
基本信息
| 属性 | 值 |
|---|---|
| 类名 | pl.asie.lib.block.BlockBase |
| 类型 | class extends BlockContainer implements IBlockInfo |
| 方法数 | 38 |
| 源码规模 | 476 行 |
| 启用版本 | 1.7.10 |
功能
asie 方块的基类:统一图标、TileEntity 创建、右键打开 GUI 与掉落物处理。
实现要点
- ⚠️
BlockBase.java:455-459的getDebugInfo(EntityPlayer, int, int, int, int)是整段被注释掉的@Optional.Method(modid = Mods.GregTech)代码,不在类中。 registerBlockIcons(IIconRegister)(第 408 行)是唯一覆写的渲染钩子。- 客户端配套渲染器是
BlockBaseRender(ISimpleBlockRenderingHandler)。 - 本 mod 不注册任何它的实例。
相关条目
- TileMachine - 配套 TileEntity 基类
- BlockBaseRender - 客户端渲染处理器
- ContainerBase - 配套 GUI 容器基类
- MantleBlock - 另一个 mod 的方块基类(无依赖关系)