DistancePredicate

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

Members

static absoluteDistance(bounds as Doubles) as DistancePredicate
script.zs
// DistancePredicate.absoluteDistance(bounds as Doubles) as DistancePredicate;
DistancePredicate.absoluteDistance(myDoubles);

Return Type: DistancePredicate

static create(x as Doubles, y as Doubles, z as Doubles, horizontal as Doubles, absolute as Doubles) as DistancePredicate
script.zs
// DistancePredicate.create(x as Doubles, y as Doubles, z as Doubles, horizontal as Doubles, absolute as Doubles) as DistancePredicate;
DistancePredicate.create(myDoubles, myDoubles, myDoubles, myDoubles, myDoubles);

Return Type: DistancePredicate

static horizontalDistance(bounds as Doubles) as DistancePredicate
script.zs
// DistancePredicate.horizontalDistance(bounds as Doubles) as DistancePredicate;
DistancePredicate.horizontalDistance(myDoubles);

Return Type: DistancePredicate

static verticalDistance(bounds as Doubles) as DistancePredicate
script.zs
// DistancePredicate.verticalDistance(bounds as Doubles) as DistancePredicate;
DistancePredicate.verticalDistance(myDoubles);

Return Type: DistancePredicate

static xyz(x as Doubles, y as Doubles, z as Doubles) as DistancePredicate
script.zs
// DistancePredicate.xyz(x as Doubles, y as Doubles, z as Doubles) as DistancePredicate;
DistancePredicate.xyz(myDoubles, myDoubles, myDoubles);

Return Type: DistancePredicate