PlayerPredicateBuilder

Link to playerpredicatebuilder

Importing the class

Link to importing-the-class

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;

Link to g-

Name: advancement

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancement(name as ResourceLocation, completed as boolean) as PlayerPredicateBuilder
ParameterTypeDescriptionOptionalDefaultValue
Parameter
name
Type
ResourceLocation
Description
No Description Provided
Optional
false
DefaultValue
Parameter
completed
Type
boolean
Description
No Description Provided
Optional
true
DefaultValue
true

Link to g--1

Name: advancement

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancement(name as string, completed as boolean) as PlayerPredicateBuilder
ParameterTypeDescriptionOptionalDefaultValue
Parameter
name
Type
string
Description
No Description Provided
Optional
false
DefaultValue
Parameter
completed
Type
boolean
Description
No Description Provided
Optional
true
DefaultValue
true

Link to g--2

Name: advancementCriteria

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancementCriteria(name as ResourceLocation, criteria as bool?[string]) as PlayerPredicateBuilder
ParameterTypeDescription
Parameter
name
Type
ResourceLocation
Description
No Description Provided
Parameter
criteria
Type
bool?[string]
Description
No Description Provided

Link to g--3

Name: advancementCriteria

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancementCriteria(name as string, criteria as bool?[string]) as PlayerPredicateBuilder
ParameterTypeDescription
Parameter
name
Type
string
Description
No Description Provided
Parameter
criteria
Type
bool?[string]
Description
No Description Provided

Link to g--4

Name: advancementCriterion

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancementCriterion(name as ResourceLocation, criterion as string, completed as boolean) as PlayerPredicateBuilder
ParameterTypeDescriptionOptionalDefaultValue
Parameter
name
Type
ResourceLocation
Description
No Description Provided
Optional
false
DefaultValue
Parameter
criterion
Type
string
Description
No Description Provided
Optional
false
DefaultValue
Parameter
completed
Type
boolean
Description
No Description Provided
Optional
true
DefaultValue
true

Link to g--5

Name: advancementCriterion

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancementCriterion(name as string, criterion as string, completed as boolean) as PlayerPredicateBuilder
ParameterTypeDescriptionOptionalDefaultValue
Parameter
name
Type
string
Description
No Description Provided
Optional
false
DefaultValue
Parameter
criterion
Type
string
Description
No Description Provided
Optional
false
DefaultValue
Parameter
completed
Type
boolean
Description
No Description Provided
Optional
true
DefaultValue
true

Name: build

Return Type: PlayerPredicate

ZenScript
Copy
// PlayerPredicateBuilder.build() as PlayerPredicate

myPlayerPredicateBuilder.build();

Link to g--7

Name: gameType

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.gameType(type as GameType) as PlayerPredicateBuilder
ParameterTypeDescription
Parameter
type
Type
GameType
Description
No Description Provided

Name: level

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.level(level as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
ParameterTypeDescription
Parameter
level
Type
IntMinMaxBoundsPredicate
Description
No Description Provided

Link to g--9

Name: lookingAt

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.lookingAt(predicate as EntityPredicate) as PlayerPredicateBuilder
ParameterTypeDescription
Parameter
predicate
Type
EntityPredicate
Description
No Description Provided

Link to g--10

Name: lookingAt

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.lookingAt(predicate as EntityPredicateBuilder) as PlayerPredicateBuilder
ParameterTypeDescription
Parameter
predicate
Type
EntityPredicateBuilder
Description
No Description Provided

Name: recipe

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.recipe(name as ResourceLocation, unlocked as boolean) as PlayerPredicateBuilder
ParameterTypeDescriptionOptionalDefaultValue
Parameter
name
Type
ResourceLocation
Description
No Description Provided
Optional
false
DefaultValue
Parameter
unlocked
Type
boolean
Description
No Description Provided
Optional
true
DefaultValue
true

Name: recipe

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.recipe(name as string, unlocked as boolean) as PlayerPredicateBuilder
ParameterTypeDescriptionOptionalDefaultValue
Parameter
name
Type
string
Description
No Description Provided
Optional
false
DefaultValue
Parameter
unlocked
Type
boolean
Description
No Description Provided
Optional
true
DefaultValue
true

Link to g--13

Name: statistic

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.statistic(type as ResourceLocation, name as ResourceLocation, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
ParameterTypeDescription
Parameter
type
Type
ResourceLocation
Description
No Description Provided
Parameter
name
Type
ResourceLocation
Description
No Description Provided
Parameter
value
Type
IntMinMaxBoundsPredicate
Description
No Description Provided

Link to g--14

Name: statistic

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.statistic(type as ResourceLocation, name as string, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
ParameterTypeDescription
Parameter
type
Type
ResourceLocation
Description
No Description Provided
Parameter
name
Type
string
Description
No Description Provided
Parameter
value
Type
IntMinMaxBoundsPredicate
Description
No Description Provided

Link to g--15

Name: statistic

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.statistic(type as string, name as ResourceLocation, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
ParameterTypeDescription
Parameter
type
Type
string
Description
No Description Provided
Parameter
name
Type
ResourceLocation
Description
No Description Provided
Parameter
value
Type
IntMinMaxBoundsPredicate
Description
No Description Provided

Link to g--16

Name: statistic

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.statistic(type as string, name as string, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
ParameterTypeDescription
Parameter
type
Type
string
Description
No Description Provided
Parameter
name
Type
string
Description
No Description Provided
Parameter
value
Type
IntMinMaxBoundsPredicate
Description
No Description Provided