EntityTypePredicate

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.predicate.EntityTypePredicate;

Members

static create(type as EntityType<?>) as EntityTypePredicate
script.zs
// EntityTypePredicate.create(type as EntityType<?>) as EntityTypePredicate;
EntityTypePredicate.create(myEntityType);

Parameters:

type Type: EntityType<?>

Return Type: EntityTypePredicate

static create(type as KnownTag<EntityType<?>>) as EntityTypePredicate
script.zs
// EntityTypePredicate.create(type as KnownTag<EntityType<?>>) as EntityTypePredicate;
EntityTypePredicate.create(myKnownTag);

Parameters:

type Type: KnownTag<EntityType<?>>

Return Type: EntityTypePredicate