PlayerPredicateBuilder

Link to playerpredicatebuilder

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
Copy
import crafttweaker.api.predicate.builder.PlayerPredicateBuilder;

Name: advancement

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancement(name as ResourceLocation, completed as boolean) as PlayerPredicateBuilder
参数类型描述可选DefaultValue
参数
name(名称)
类型
资源位置
描述
No Description Provided
可选
false
DefaultValue
参数
completed
类型
布尔值
描述
No Description Provided
可选
true
DefaultValue
true

Name: advancement

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancement(name as string, completed as boolean) as PlayerPredicateBuilder
参数类型描述可选DefaultValue
参数
name(名称)
类型
string
描述
No Description Provided
可选
false
DefaultValue
参数
completed
类型
布尔值
描述
No Description Provided
可选
true
DefaultValue
true

Link to advancementCriteria

Name: advancementCriteria

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancementCriteria(name as ResourceLocation, criteria as bool?[string]) as PlayerPredicateBuilder
参数类型描述
参数
name(名称)
类型
资源位置
描述
No Description Provided
参数
criteria
类型
bool?[string]
描述
No Description Provided

Link to advancementCriteria

Name: advancementCriteria

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancementCriteria(name as string, criteria as bool?[string]) as PlayerPredicateBuilder
参数类型描述
参数
name(名称)
类型
string
描述
No Description Provided
参数
criteria
类型
bool?[string]
描述
No Description Provided

Link to advancementCriterion

Name: advancementCriterion

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancementCriterion(name as ResourceLocation, criterion as string, completed as boolean) as PlayerPredicateBuilder
参数类型描述可选DefaultValue
参数
name(名称)
类型
资源位置
描述
No Description Provided
可选
false
DefaultValue
参数
criterion
类型
string
描述
No Description Provided
可选
false
DefaultValue
参数
completed
类型
布尔值
描述
No Description Provided
可选
true
DefaultValue
true

Link to advancementCriterion

Name: advancementCriterion

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancementCriterion(name as string, criterion as string, completed as boolean) as PlayerPredicateBuilder
参数类型描述可选DefaultValue
参数
name(名称)
类型
string
描述
No Description Provided
可选
false
DefaultValue
参数
criterion
类型
string
描述
No Description Provided
可选
false
DefaultValue
参数
completed
类型
布尔值
描述
No Description Provided
可选
true
DefaultValue
true

Name: build

Return Type: PlayerPredicate

ZenScript
Copy
// PlayerPredicateBuilder.build() as PlayerPredicate

myPlayerPredicateBuilder.build();

Name: gameType

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.gameType(type as GameType) as PlayerPredicateBuilder
参数类型描述
参数
类型
类型
GameType
描述
No Description Provided

Name: level

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.level(level as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
参数类型描述
参数
level
类型
IntMinMaxBoundsPredicate
描述
No Description Provided

Name: lookingAt

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.lookingAt(predicate as EntityPredicate) as PlayerPredicateBuilder
参数类型描述
参数
predicate
类型
EntityPredicate
描述
No Description Provided

Name: lookingAt

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.lookingAt(predicate as EntityPredicateBuilder) as PlayerPredicateBuilder
参数类型描述
参数
predicate
类型
EntityPredicateBuilder
描述
No Description Provided

Name: recipe

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.recipe(name as ResourceLocation, unlocked as boolean) as PlayerPredicateBuilder
参数类型描述可选DefaultValue
参数
name(名称)
类型
资源位置
描述
No Description Provided
可选
false
DefaultValue
参数
unlocked
类型
布尔值
描述
No Description Provided
可选
true
DefaultValue
true

Name: recipe

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.recipe(name as string, unlocked as boolean) as PlayerPredicateBuilder
参数类型描述可选DefaultValue
参数
name(名称)
类型
string
描述
No Description Provided
可选
false
DefaultValue
参数
unlocked
类型
布尔值
描述
No Description Provided
可选
true
DefaultValue
true

Name: statistic

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.statistic(type as ResourceLocation, name as ResourceLocation, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
参数类型描述
参数
类型
类型
资源位置
描述
No Description Provided
参数
name(名称)
类型
资源位置
描述
No Description Provided
参数
类型
IntMinMaxBoundsPredicate
描述
No Description Provided

Name: statistic

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.statistic(type as ResourceLocation, name as string, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
参数类型描述
参数
类型
类型
资源位置
描述
No Description Provided
参数
name(名称)
类型
string
描述
No Description Provided
参数
类型
IntMinMaxBoundsPredicate
描述
No Description Provided

Name: statistic

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.statistic(type as string, name as ResourceLocation, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
参数类型描述
参数
类型
类型
string
描述
No Description Provided
参数
name(名称)
类型
资源位置
描述
No Description Provided
参数
类型
IntMinMaxBoundsPredicate
描述
No Description Provided

Name: statistic

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.statistic(type as string, name as string, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
参数类型描述
参数
类型
类型
string
描述
No Description Provided
参数
name(名称)
类型
string
描述
No Description Provided
参数
类型
IntMinMaxBoundsPredicate
描述
No Description Provided