EntityPredicate
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.EntityPredicate;
Static Methods
Return Type: EntityPredicate
// EntityPredicate.any() as EntityPredicate
EntityPredicate.any();
Return Type: EntityPredicateBuilder
// EntityPredicate.create() as EntityPredicateBuilder
EntityPredicate.create();
Return Type: EntityPredicateBuilder
EntityPredicate.create(catType as ResourceLocation) as EntityPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter catType | Type ResourceLocation | Description No Description Provided |
Return Type: EntityPredicateBuilder
EntityPredicate.create(catType as string) as EntityPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter catType | Type string | Description No Description Provided |
Return Type: EntityPredicateBuilder
EntityPredicate.create(entityTag as MCTag<EntityType>) as EntityPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter entityTag | Type MCTag<EntityType> | Description No Description Provided |
Return Type: EntityPredicateBuilder
EntityPredicate.create(entityType as EntityType) as EntityPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter entityType | Type EntityType | Description No Description Provided |