EntitySubPredicates

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.EntitySubPredicates;

Members

static catVariant(variants as ResourceLocation[]) as EntitySubPredicate
script.zs
// EntitySubPredicates.catVariant(variants as ResourceLocation[]) as EntitySubPredicate;
EntitySubPredicates.catVariant(myResourceLocation[]);

Parameters:

variants Type: ResourceLocation[]

Return Type: EntitySubPredicate

static frogVariant(variants as ResourceLocation[]) as EntitySubPredicate
script.zs
// EntitySubPredicates.frogVariant(variants as ResourceLocation[]) as EntitySubPredicate;
EntitySubPredicates.frogVariant(myResourceLocation[]);

Parameters:

variants Type: ResourceLocation[]

Return Type: EntitySubPredicate

static paintingVariant(variants as ResourceLocation[]) as EntitySubPredicate
script.zs
// EntitySubPredicates.paintingVariant(variants as ResourceLocation[]) as EntitySubPredicate;
EntitySubPredicates.paintingVariant(myResourceLocation[]);

Parameters:

variants Type: ResourceLocation[]

Return Type: EntitySubPredicate

static wolfVariant(variants as ResourceLocation[]) as EntitySubPredicate
script.zs
// EntitySubPredicates.wolfVariant(variants as ResourceLocation[]) as EntitySubPredicate;
EntitySubPredicates.wolfVariant(myResourceLocation[]);

Parameters:

variants Type: ResourceLocation[]

Return Type: EntitySubPredicate