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> |