NbtPredicate

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

Members

static create(data as MapData) as NbtPredicate
script.zs
// NbtPredicate.create(data as MapData) as NbtPredicate;
NbtPredicate.create(myMapData);

Parameters:

data Type: MapData

Return Type: NbtPredicate

static create(data as IData) as NbtPredicate
script.zs
// NbtPredicate.create(data as IData) as NbtPredicate;
NbtPredicate.create(myIData);

Parameters:

data Type: IData

Return Type: NbtPredicate