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 Copyimport crafttweaker.api.predicate.builder.PlayerPredicateBuilder;
Metodi
Link to metodi
Name: advancement
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.advancement(name as ResourceLocation, completed as boolean) as PlayerPredicateBuilder
Parametro | Tipo | Optional | Default Value |
---|---|---|---|
Parametro nome | Tipo ResourceLocation | Optional no | Default Value |
Parametro completed | Tipo boolean | Optional sì | Default Value sì |
Name: advancement
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.advancement(name as string, completed as boolean) as PlayerPredicateBuilder
Parametro | Tipo | Optional | Default Value |
---|---|---|---|
Parametro nome | Tipo string | Optional no | Default Value |
Parametro completed | Tipo boolean | Optional sì | Default Value sì |
Name: advancementCriteria
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.advancementCriteria(name as ResourceLocation, criteria as bool?[string]) as PlayerPredicateBuilder
Parametro | Tipo |
---|---|
Parametro nome | Tipo ResourceLocation |
Parametro criteria | Tipo bool?[string] |
Name: advancementCriteria
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.advancementCriteria(name as string, criteria as bool?[string]) as PlayerPredicateBuilder
Parametro | Tipo |
---|---|
Parametro nome | Tipo string |
Parametro criteria | Tipo bool?[string] |
Name: advancementCriterion
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.advancementCriterion(name as ResourceLocation, criterion as string, completed as boolean) as PlayerPredicateBuilder
Parametro | Tipo | Optional | Default Value |
---|---|---|---|
Parametro nome | Tipo ResourceLocation | Optional no | Default Value |
Parametro criterion | Tipo string | Optional no | Default Value |
Parametro completed | Tipo boolean | Optional sì | Default Value sì |
Name: advancementCriterion
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.advancementCriterion(name as string, criterion as string, completed as boolean) as PlayerPredicateBuilder
Parametro | Tipo | Optional | Default Value |
---|---|---|---|
Parametro nome | Tipo string | Optional no | Default Value |
Parametro criterion | Tipo string | Optional no | Default Value |
Parametro completed | Tipo boolean | Optional sì | Default Value sì |
Name: build
Return Type: PlayerPredicate
ZenScript Copy// PlayerPredicateBuilder.build() as PlayerPredicate
myPlayerPredicateBuilder.build();
Name: gameType
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.gameType(type as GameType) as PlayerPredicateBuilder
Parametro | Tipo |
---|---|
Parametro type | Tipo GameType |
Name: level
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.level(level as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
Parametro | Tipo |
---|---|
Parametro level | Tipo IntMinMaxBoundsPredicate |
Name: lookingAt
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.lookingAt(predicate as EntityPredicate) as PlayerPredicateBuilder
Parametro | Tipo |
---|---|
Parametro predicate | Tipo EntityPredicate |
Name: lookingAt
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.lookingAt(predicate as EntityPredicateBuilder) as PlayerPredicateBuilder
Parametro | Tipo |
---|---|
Parametro predicate | Tipo EntityPredicateBuilder |
Name: recipe
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.recipe(name as ResourceLocation, unlocked as boolean) as PlayerPredicateBuilder
Parametro | Tipo | Optional | Default Value |
---|---|---|---|
Parametro nome | Tipo ResourceLocation | Optional no | Default Value |
Parametro unlocked | Tipo boolean | Optional sì | Default Value sì |
Name: recipe
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.recipe(name as string, unlocked as boolean) as PlayerPredicateBuilder
Parametro | Tipo | Optional | Default Value |
---|---|---|---|
Parametro nome | Tipo string | Optional no | Default Value |
Parametro unlocked | Tipo boolean | Optional sì | Default Value sì |
Name: statistic
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.statistic(type as ResourceLocation, name as ResourceLocation, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
Parametro | Tipo |
---|---|
Parametro type | Tipo ResourceLocation |
Parametro nome | Tipo ResourceLocation |
Parametro valore | Tipo IntMinMaxBoundsPredicate |
Name: statistic
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.statistic(type as ResourceLocation, name as string, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
Parametro | Tipo |
---|---|
Parametro type | Tipo ResourceLocation |
Parametro nome | Tipo string |
Parametro valore | Tipo IntMinMaxBoundsPredicate |
Name: statistic
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.statistic(type as string, name as ResourceLocation, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
Parametro | Tipo |
---|---|
Parametro type | Tipo string |
Parametro nome | Tipo ResourceLocation |
Parametro valore | Tipo IntMinMaxBoundsPredicate |
Name: statistic
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.statistic(type as string, name as string, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
Parametro | Tipo |
---|---|
Parametro type | Tipo string |
Parametro nome | Tipo string |
Parametro valore | Tipo IntMinMaxBoundsPredicate |