PlayerPredicateBuilder
Link to playerpredicatebuilder
Diese Klasse importieren
Link to diese-klasse-importieren
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;
Methoden
Link to methoden
Name: advancement
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.advancement(name as ResourceLocation, completed as boolean) as PlayerPredicateBuilder
Parameter | Type | Beschreibung | Optional | DefaultValue |
---|---|---|---|---|
Parameter name | Type ResourceLocation | Beschreibung No Description Provided | Optional false | DefaultValue |
Parameter completed | Type boolean | Beschreibung No Description Provided | Optional true | DefaultValue true |
Name: advancement
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.advancement(name as string, completed as boolean) as PlayerPredicateBuilder
Parameter | Type | Beschreibung | Optional | DefaultValue |
---|---|---|---|---|
Parameter name | Type string | Beschreibung No Description Provided | Optional false | DefaultValue |
Parameter completed | Type boolean | Beschreibung No Description Provided | Optional true | DefaultValue true |
Name: advancementCriteria
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.advancementCriteria(name as ResourceLocation, criteria as bool?[string]) as PlayerPredicateBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter name | Type ResourceLocation | Beschreibung No Description Provided |
Parameter criteria | Type bool?[string] | Beschreibung No Description Provided |
Name: advancementCriteria
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.advancementCriteria(name as string, criteria as bool?[string]) as PlayerPredicateBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter name | Type string | Beschreibung No Description Provided |
Parameter criteria | Type bool?[string] | Beschreibung No Description Provided |
Name: advancementCriterion
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.advancementCriterion(name as ResourceLocation, criterion as string, completed as boolean) as PlayerPredicateBuilder
Parameter | Type | Beschreibung | Optional | DefaultValue |
---|---|---|---|---|
Parameter name | Type ResourceLocation | Beschreibung No Description Provided | Optional false | DefaultValue |
Parameter criterion | Type string | Beschreibung No Description Provided | Optional false | DefaultValue |
Parameter completed | Type boolean | Beschreibung No Description Provided | Optional true | DefaultValue true |
Name: advancementCriterion
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.advancementCriterion(name as string, criterion as string, completed as boolean) as PlayerPredicateBuilder
Parameter | Type | Beschreibung | Optional | DefaultValue |
---|---|---|---|---|
Parameter name | Type string | Beschreibung No Description Provided | Optional false | DefaultValue |
Parameter criterion | Type string | Beschreibung No Description Provided | Optional false | DefaultValue |
Parameter completed | Type boolean | Beschreibung No Description Provided | Optional true | DefaultValue true |
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
Parameter | Type | Beschreibung |
---|---|---|
Parameter type | Type GameType | Beschreibung No Description Provided |
Name: level
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.level(level as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter level | Type IntMinMaxBoundsPredicate | Beschreibung No Description Provided |
Name: lookingAt
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.lookingAt(predicate as EntityPredicate) as PlayerPredicateBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter predicate | Type EntityPredicate | Beschreibung No Description Provided |
Name: lookingAt
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.lookingAt(predicate as EntityPredicateBuilder) as PlayerPredicateBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter predicate | Type EntityPredicateBuilder | Beschreibung No Description Provided |
Name: recipe
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.recipe(name as ResourceLocation, unlocked as boolean) as PlayerPredicateBuilder
Parameter | Type | Beschreibung | Optional | DefaultValue |
---|---|---|---|---|
Parameter name | Type ResourceLocation | Beschreibung No Description Provided | Optional false | DefaultValue |
Parameter unlocked | Type boolean | Beschreibung No Description Provided | Optional true | DefaultValue true |
Name: recipe
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.recipe(name as string, unlocked as boolean) as PlayerPredicateBuilder
Parameter | Type | Beschreibung | Optional | DefaultValue |
---|---|---|---|---|
Parameter name | Type string | Beschreibung No Description Provided | Optional false | DefaultValue |
Parameter unlocked | Type boolean | Beschreibung No Description Provided | Optional true | DefaultValue true |
Name: statistic
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.statistic(type as ResourceLocation, name as ResourceLocation, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter type | Type ResourceLocation | Beschreibung No Description Provided |
Parameter name | Type ResourceLocation | Beschreibung No Description Provided |
Parameter value | Type IntMinMaxBoundsPredicate | Beschreibung No Description Provided |
Name: statistic
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.statistic(type as ResourceLocation, name as string, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter type | Type ResourceLocation | Beschreibung No Description Provided |
Parameter name | Type string | Beschreibung No Description Provided |
Parameter value | Type IntMinMaxBoundsPredicate | Beschreibung No Description Provided |
Name: statistic
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.statistic(type as string, name as ResourceLocation, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter type | Type string | Beschreibung No Description Provided |
Parameter name | Type ResourceLocation | Beschreibung No Description Provided |
Parameter value | Type IntMinMaxBoundsPredicate | Beschreibung No Description Provided |
Name: statistic
Return Type: PlayerPredicateBuilder
ZenScript CopyPlayerPredicateBuilder.statistic(type as string, name as string, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
Parameter | Type | Beschreibung |
---|---|---|
Parameter type | Type string | Beschreibung No Description Provided |
Parameter name | Type string | Beschreibung No Description Provided |
Parameter value | Type IntMinMaxBoundsPredicate | Beschreibung No Description Provided |