EntityFlagsPredicateBuilder
Link to entityflagspredicatebuilder
导入类
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.EntityFlagsPredicateBuilder;
使用方式
Link to 使用方式
Name: baby
Return Type: EntityFlagsPredicateBuilder
ZenScript CopyEntityFlagsPredicateBuilder.baby(baby as bool?) as EntityFlagsPredicateBuilder
参数 | 类型 | 可选 | 默认值 |
---|---|---|---|
参数 baby | 类型 bool? | 可选 true | 默认值 true |
Name: build
Return Type: EntityFlagsPredicate
ZenScript Copy// EntityFlagsPredicateBuilder.build() as EntityFlagsPredicate
myEntityFlagsPredicateBuilder.build();
Name: crouching
Return Type: EntityFlagsPredicateBuilder
ZenScript CopyEntityFlagsPredicateBuilder.crouching(crouching as bool?) as EntityFlagsPredicateBuilder
参数 | 类型 | 可选 | 默认值 |
---|---|---|---|
参数 crouching | 类型 bool? | 可选 true | 默认值 true |
Name: onFire
Return Type: EntityFlagsPredicateBuilder
ZenScript CopyEntityFlagsPredicateBuilder.onFire(onFire as bool?) as EntityFlagsPredicateBuilder
参数 | 类型 | 可选 | 默认值 |
---|---|---|---|
参数 onFire | 类型 bool? | 可选 true | 默认值 true |
Name: sprinting
Return Type: EntityFlagsPredicateBuilder
ZenScript CopyEntityFlagsPredicateBuilder.sprinting(sprinting as bool?) as EntityFlagsPredicateBuilder
参数 | 类型 | 可选 | 默认值 |
---|---|---|---|
参数 sprinting | 类型 bool? | 可选 true | 默认值 true |
Name: swimming
Return Type: EntityFlagsPredicateBuilder
ZenScript CopyEntityFlagsPredicateBuilder.swimming(swimming as bool?) as EntityFlagsPredicateBuilder
参数 | 类型 | 可选 | 默认值 |
---|---|---|---|
参数 swimming | 类型 bool? | 可选 true | 默认值 true |