BlockTypeBuilder
Link to blocktypebuilder
Denotes a special builder that is used for building special block types. 用于 mods.contenttweeper.block.BlockTypeBuilder#withType
This class was added by a mod with mod-id contenttweaker
. 因此,如果要使用此功能,则需要安装此mod。
导入类
Link to 导入类
如果遇到任何问题(例如强制转换数组),则可能需要导入软件包,因此,最好的方式就是导入包支持。
ZenScript Copymods.contenttweeper.block.BlockTypeBuilder
已实现的接口
Link to 已实现的接口
BlockTypeBuilder implements the following interfaces. 这意味着对这个接口可用的任何方法也可以在此类上使用。
使用方式
Link to 使用方式
build
Link to build
Instructs CoT to actually build whatever this builder is supposed to be building.
ZenScript Copynew BlockBuilder().withType<BlockBuilderBasic>().build(resourceLocation as String);
new BlockBuilder().withType<BlockBuilderBasic>().build("my_awesome_block");
参数 | 类型 | 描述 |
---|---|---|
参数 resourceLocation | 类型 字符串[string] | 描述 The resource path to give this block |