BlockPredicateBuilder
Link to blockpredicatebuilder
导入类
Link to 导入类
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.predicate.builder.BlockPredicateBuilder;
使用方式
Link to 使用方式
Name: blocks
Return Type: BlockPredicateBuilder
ZenScript CopyBlockPredicateBuilder.blocks(blocks as Block[]) as BlockPredicateBuilder
参数 | 类型 |
---|---|
参数 blocks | 类型 Block[] |
Name: build
Return Type: BlockPredicate
ZenScript Copy// BlockPredicateBuilder.build() as BlockPredicate
myBlockPredicateBuilder.build();
Name: nbt
Return Type: BlockPredicateBuilder
ZenScript CopyBlockPredicateBuilder.nbt(tag as IData) as BlockPredicateBuilder
参数 | 类型 |
---|---|
参数 tag #标签 | 类型 IData #数据 |
Name: nbt
Return Type: BlockPredicateBuilder
ZenScript CopyBlockPredicateBuilder.nbt(tag as MapData) as BlockPredicateBuilder
参数 | 类型 |
---|---|
参数 tag #标签 | 类型 MapData #地图数据 |
Name: properties
Return Type: BlockPredicateBuilder
ZenScript CopyBlockPredicateBuilder.properties(predicate as StatePropertiesPredicate) as BlockPredicateBuilder
参数 | 类型 |
---|---|
参数 predicate | 类型 StatePropertiesPredicate |
Name: properties
Return Type: BlockPredicateBuilder
ZenScript CopyBlockPredicateBuilder.properties(predicate as StatePropertiesPredicateBuilder) as BlockPredicateBuilder
参数 | 类型 |
---|---|
参数 predicate | 类型 StatePropertiesPredicateBuilder |
Name: tag
Return Type: BlockPredicateBuilder
ZenScript CopyBlockPredicateBuilder.tag(tag as KnownTag<Block>) as BlockPredicateBuilder
参数 | 类型 |
---|---|
参数 tag #标签 | 类型 KnownTag<Block> |