EntityVariantPredicate

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

Members

static catVariant<V>(variant as ResourceLocation) as EntitySubPredicate
script.zs
// EntityVariantPredicate<V>.catVariant(variant as ResourceLocation) as EntitySubPredicate;
EntityVariantPredicate<V>.catVariant(myResourceLocation);

Parameters:

Return Type: EntitySubPredicate

static catVariant<V>(variant as string) as EntitySubPredicate
script.zs
// EntityVariantPredicate<V>.catVariant(variant as string) as EntitySubPredicate;
EntityVariantPredicate<V>.catVariant(myString);

Parameters:

variant Type: string

Return Type: EntitySubPredicate

static frogVariant<V>(variant as ResourceLocation) as EntitySubPredicate
script.zs
// EntityVariantPredicate<V>.frogVariant(variant as ResourceLocation) as EntitySubPredicate;
EntityVariantPredicate<V>.frogVariant(myResourceLocation);

Parameters:

Return Type: EntitySubPredicate

static frogVariant<V>(variant as string) as EntitySubPredicate
script.zs
// EntityVariantPredicate<V>.frogVariant(variant as string) as EntitySubPredicate;
EntityVariantPredicate<V>.frogVariant(myString);

Parameters:

variant Type: string

Return Type: EntitySubPredicate