PlayerPredicateBuilder
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.
import crafttweaker.api.predicate.builder.PlayerPredicateBuilder;
Methods
Return Type: PlayerPredicateBuilder
PlayerPredicateBuilder.advancement(name as ResourceLocation, completed as boolean) as PlayerPredicateBuilder
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter name | Type ResourceLocation | Description No Description Provided | Optional false | DefaultValue |
Parameter completed | Type boolean | Description No Description Provided | Optional true | DefaultValue true |
Return Type: PlayerPredicateBuilder
PlayerPredicateBuilder.advancement(name as string, completed as boolean) as PlayerPredicateBuilder
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter name | Type string | Description No Description Provided | Optional false | DefaultValue |
Parameter completed | Type boolean | Description No Description Provided | Optional true | DefaultValue true |
Return Type: PlayerPredicateBuilder
PlayerPredicateBuilder.advancementCriteria(name as ResourceLocation, criteria as bool?[string]) as PlayerPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter name | Type ResourceLocation | Description No Description Provided |
Parameter criteria | Type bool?[string] | Description No Description Provided |
Return Type: PlayerPredicateBuilder
PlayerPredicateBuilder.advancementCriteria(name as string, criteria as bool?[string]) as PlayerPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter name | Type string | Description No Description Provided |
Parameter criteria | Type bool?[string] | Description No Description Provided |
Return Type: PlayerPredicateBuilder
PlayerPredicateBuilder.advancementCriterion(name as ResourceLocation, criterion as string, completed as boolean) as PlayerPredicateBuilder
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
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 |
Return Type: PlayerPredicateBuilder
PlayerPredicateBuilder.advancementCriterion(name as string, criterion as string, completed as boolean) as PlayerPredicateBuilder
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
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 |
Return Type: PlayerPredicate
// PlayerPredicateBuilder.build() as PlayerPredicate
myPlayerPredicateBuilder.build();
Return Type: PlayerPredicateBuilder
PlayerPredicateBuilder.gameType(type as GameType) as PlayerPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter type | Type GameType | Description No Description Provided |
Return Type: PlayerPredicateBuilder
PlayerPredicateBuilder.level(level as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter level | Type IntMinMaxBoundsPredicate | Description No Description Provided |
Return Type: PlayerPredicateBuilder
PlayerPredicateBuilder.lookingAt(predicate as EntityPredicate) as PlayerPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter predicate | Type EntityPredicate | Description No Description Provided |
Return Type: PlayerPredicateBuilder
PlayerPredicateBuilder.lookingAt(predicate as EntityPredicateBuilder) as PlayerPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter predicate | Type EntityPredicateBuilder | Description No Description Provided |
Return Type: PlayerPredicateBuilder
PlayerPredicateBuilder.recipe(name as ResourceLocation, unlocked as boolean) as PlayerPredicateBuilder
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter name | Type ResourceLocation | Description No Description Provided | Optional false | DefaultValue |
Parameter unlocked | Type boolean | Description No Description Provided | Optional true | DefaultValue true |
Return Type: PlayerPredicateBuilder
PlayerPredicateBuilder.recipe(name as string, unlocked as boolean) as PlayerPredicateBuilder
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter name | Type string | Description No Description Provided | Optional false | DefaultValue |
Parameter unlocked | Type boolean | Description No Description Provided | Optional true | DefaultValue true |
Return Type: PlayerPredicateBuilder
PlayerPredicateBuilder.statistic(type as ResourceLocation, name as ResourceLocation, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter type | Type ResourceLocation | Description No Description Provided |
Parameter name | Type ResourceLocation | Description No Description Provided |
Parameter value | Type IntMinMaxBoundsPredicate | Description No Description Provided |
Return Type: PlayerPredicateBuilder
PlayerPredicateBuilder.statistic(type as ResourceLocation, name as string, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter type | Type ResourceLocation | Description No Description Provided |
Parameter name | Type string | Description No Description Provided |
Parameter value | Type IntMinMaxBoundsPredicate | Description No Description Provided |
Return Type: PlayerPredicateBuilder
PlayerPredicateBuilder.statistic(type as string, name as ResourceLocation, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter type | Type string | Description No Description Provided |
Parameter name | Type ResourceLocation | Description No Description Provided |
Parameter value | Type IntMinMaxBoundsPredicate | Description No Description Provided |
Return Type: PlayerPredicateBuilder
PlayerPredicateBuilder.statistic(type as string, name as string, value as IntMinMaxBoundsPredicate) as PlayerPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter type | Type string | Description No Description Provided |
Parameter name | Type string | Description No Description Provided |
Parameter value | Type IntMinMaxBoundsPredicate | Description No Description Provided |