PlayerPredicateBuilder

Link to playerpredicatebuilder

Импорт класса

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

Name: advancement

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancement(name as ResourceLocation, completed as boolean) as PlayerPredicateBuilder
ПараметрТипOptionalDefault Value
Параметр
name
Тип
ResourceLocation
Optional
false
Default Value
Параметр
completed
Тип
boolean
Optional
true
Default Value
true

Name: advancement

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancement(name as string, completed as boolean) as PlayerPredicateBuilder
ПараметрТипOptionalDefault Value
Параметр
name
Тип
string
Optional
false
Default Value
Параметр
completed
Тип
boolean
Optional
true
Default Value
true

Link to advancementCriteria

Name: advancementCriteria

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancementCriteria(name as ResourceLocation, criteria as bool?[string]) as PlayerPredicateBuilder
ПараметрТип
Параметр
name
Тип
ResourceLocation
Параметр
criteria
Тип
bool?[string]

Link to advancementCriteria

Name: advancementCriteria

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancementCriteria(name as string, criteria as bool?[string]) as PlayerPredicateBuilder
ПараметрТип
Параметр
name
Тип
string
Параметр
criteria
Тип
bool?[string]

Link to advancementCriterion

Name: advancementCriterion

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancementCriterion(name as ResourceLocation, criterion as string, completed as boolean) as PlayerPredicateBuilder
ПараметрТипOptionalDefault Value
Параметр
name
Тип
ResourceLocation
Optional
false
Default Value
Параметр
criterion
Тип
string
Optional
false
Default Value
Параметр
completed
Тип
boolean
Optional
true
Default Value
true

Link to advancementCriterion

Name: advancementCriterion

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancementCriterion(name as string, criterion as string, completed as boolean) as PlayerPredicateBuilder
ПараметрТипOptionalDefault Value
Параметр
name
Тип
string
Optional
false
Default Value
Параметр
criterion
Тип
string
Optional
false
Default Value
Параметр
completed
Тип
boolean
Optional
true
Default Value
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
ПараметрТип
Параметр
type
Тип
GameType

Name: level

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.level(level as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
ПараметрТип
Параметр
level
Тип
IntMinMaxBoundsPredicate

Name: lookingAt

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.lookingAt(predicate as EntityPredicate) as PlayerPredicateBuilder
ПараметрТип
Параметр
predicate
Тип
EntityPredicate

Name: lookingAt

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.lookingAt(predicate as EntityPredicateBuilder) as PlayerPredicateBuilder
ПараметрТип
Параметр
predicate
Тип
EntityPredicateBuilder

Name: recipe

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.recipe(name as ResourceLocation, unlocked as boolean) as PlayerPredicateBuilder
ПараметрТипOptionalDefault Value
Параметр
name
Тип
ResourceLocation
Optional
false
Default Value
Параметр
unlocked
Тип
boolean
Optional
true
Default Value
true

Name: recipe

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.recipe(name as string, unlocked as boolean) as PlayerPredicateBuilder
ПараметрТипOptionalDefault Value
Параметр
name
Тип
string
Optional
false
Default Value
Параметр
unlocked
Тип
boolean
Optional
true
Default Value
true

Name: statistic

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.statistic(type as ResourceLocation, name as ResourceLocation, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
ПараметрТип
Параметр
type
Тип
ResourceLocation
Параметр
name
Тип
ResourceLocation
Параметр
value
Тип
IntMinMaxBoundsPredicate

Name: statistic

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.statistic(type as ResourceLocation, name as string, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
ПараметрТип
Параметр
type
Тип
ResourceLocation
Параметр
name
Тип
string
Параметр
value
Тип
IntMinMaxBoundsPredicate

Name: statistic

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.statistic(type as string, name as ResourceLocation, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
ПараметрТип
Параметр
type
Тип
string
Параметр
name
Тип
ResourceLocation
Параметр
value
Тип
IntMinMaxBoundsPredicate

Name: statistic

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.statistic(type as string, name as string, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
ПараметрТип
Параметр
type
Тип
string
Параметр
name
Тип
string
Параметр
value
Тип
IntMinMaxBoundsPredicate