PlayerPredicateBuilder

Link to playerpredicatebuilder

Importare la Classe

Link to importare-la-classe

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
ParametroTipoDescrizioneOptionalDefaultValue
Parametro
nome
Tipo
ResourceLocation
Descrizione
No Description Provided
Optional
no
DefaultValue
Parametro
completed
Tipo
boolean
Descrizione
No Description Provided
Optional
DefaultValue

Name: advancement

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancement(name as string, completed as boolean) as PlayerPredicateBuilder
ParametroTipoDescrizioneOptionalDefaultValue
Parametro
nome
Tipo
string
Descrizione
No Description Provided
Optional
no
DefaultValue
Parametro
completed
Tipo
boolean
Descrizione
No Description Provided
Optional
DefaultValue

Link to advancementCriteria

Name: advancementCriteria

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancementCriteria(name as ResourceLocation, criteria as bool?[string]) as PlayerPredicateBuilder
ParametroTipoDescrizione
Parametro
nome
Tipo
ResourceLocation
Descrizione
No Description Provided
Parametro
criteria
Tipo
bool?[string]
Descrizione
No Description Provided

Link to advancementCriteria

Name: advancementCriteria

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancementCriteria(name as string, criteria as bool?[string]) as PlayerPredicateBuilder
ParametroTipoDescrizione
Parametro
nome
Tipo
string
Descrizione
No Description Provided
Parametro
criteria
Tipo
bool?[string]
Descrizione
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
ParametroTipoDescrizioneOptionalDefaultValue
Parametro
nome
Tipo
ResourceLocation
Descrizione
No Description Provided
Optional
no
DefaultValue
Parametro
criterion
Tipo
string
Descrizione
No Description Provided
Optional
no
DefaultValue
Parametro
completed
Tipo
boolean
Descrizione
No Description Provided
Optional
DefaultValue

Link to advancementCriterion

Name: advancementCriterion

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.advancementCriterion(name as string, criterion as string, completed as boolean) as PlayerPredicateBuilder
ParametroTipoDescrizioneOptionalDefaultValue
Parametro
nome
Tipo
string
Descrizione
No Description Provided
Optional
no
DefaultValue
Parametro
criterion
Tipo
string
Descrizione
No Description Provided
Optional
no
DefaultValue
Parametro
completed
Tipo
boolean
Descrizione
No Description Provided
Optional
DefaultValue

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
ParametroTipoDescrizione
Parametro
type
Tipo
GameType
Descrizione
No Description Provided

Name: level

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.level(level as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
ParametroTipoDescrizione
Parametro
level
Tipo
IntMinMaxBoundsPredicate
Descrizione
No Description Provided

Name: lookingAt

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.lookingAt(predicate as EntityPredicate) as PlayerPredicateBuilder
ParametroTipoDescrizione
Parametro
predicate
Tipo
EntityPredicate
Descrizione
No Description Provided

Name: lookingAt

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.lookingAt(predicate as EntityPredicateBuilder) as PlayerPredicateBuilder
ParametroTipoDescrizione
Parametro
predicate
Tipo
EntityPredicateBuilder
Descrizione
No Description Provided

Name: recipe

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.recipe(name as ResourceLocation, unlocked as boolean) as PlayerPredicateBuilder
ParametroTipoDescrizioneOptionalDefaultValue
Parametro
nome
Tipo
ResourceLocation
Descrizione
No Description Provided
Optional
no
DefaultValue
Parametro
unlocked
Tipo
boolean
Descrizione
No Description Provided
Optional
DefaultValue

Name: recipe

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.recipe(name as string, unlocked as boolean) as PlayerPredicateBuilder
ParametroTipoDescrizioneOptionalDefaultValue
Parametro
nome
Tipo
string
Descrizione
No Description Provided
Optional
no
DefaultValue
Parametro
unlocked
Tipo
boolean
Descrizione
No Description Provided
Optional
DefaultValue

Name: statistic

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.statistic(type as ResourceLocation, name as ResourceLocation, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
ParametroTipoDescrizione
Parametro
type
Tipo
ResourceLocation
Descrizione
No Description Provided
Parametro
nome
Tipo
ResourceLocation
Descrizione
No Description Provided
Parametro
valore
Tipo
IntMinMaxBoundsPredicate
Descrizione
No Description Provided

Name: statistic

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.statistic(type as ResourceLocation, name as string, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
ParametroTipoDescrizione
Parametro
type
Tipo
ResourceLocation
Descrizione
No Description Provided
Parametro
nome
Tipo
string
Descrizione
No Description Provided
Parametro
valore
Tipo
IntMinMaxBoundsPredicate
Descrizione
No Description Provided

Name: statistic

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.statistic(type as string, name as ResourceLocation, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
ParametroTipoDescrizione
Parametro
type
Tipo
string
Descrizione
No Description Provided
Parametro
nome
Tipo
ResourceLocation
Descrizione
No Description Provided
Parametro
valore
Tipo
IntMinMaxBoundsPredicate
Descrizione
No Description Provided

Name: statistic

Return Type: PlayerPredicateBuilder

ZenScript
Copy
PlayerPredicateBuilder.statistic(type as string, name as string, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
ParametroTipoDescrizione
Parametro
type
Tipo
string
Descrizione
No Description Provided
Parametro
nome
Tipo
string
Descrizione
No Description Provided
Parametro
valore
Tipo
IntMinMaxBoundsPredicate
Descrizione
No Description Provided