DistancePredicate

Link to distancepredicate

Importare la Classe

Link to importare-la-classe

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.predicate.DistancePredicate;

Link to absoluteDistance

Name: absoluteDistance

Return Type: DistancePredicate

ZenScript
Copy
DistancePredicate.absoluteDistance(bounds as DoubleMinMaxBoundsPredicate) as DistancePredicate
ParametroTipoDescrizione
Parametro
bounds
Tipo
DoubleMinMaxBoundsPredicate
Descrizione
No Description Provided

Name: any

Return Type: DistancePredicate

ZenScript
Copy
// DistancePredicate.any() as DistancePredicate

DistancePredicate.any();

Name: create

Return Type: DistancePredicate

ZenScript
Copy
DistancePredicate.create(x as DoubleMinMaxBoundsPredicate, y as DoubleMinMaxBoundsPredicate, z as DoubleMinMaxBoundsPredicate, horizontal as DoubleMinMaxBoundsPredicate, absolute as DoubleMinMaxBoundsPredicate) as DistancePredicate
ParametroTipoDescrizione
Parametro
x
Tipo
DoubleMinMaxBoundsPredicate
Descrizione
No Description Provided
Parametro
y
Tipo
DoubleMinMaxBoundsPredicate
Descrizione
No Description Provided
Parametro
z
Tipo
DoubleMinMaxBoundsPredicate
Descrizione
No Description Provided
Parametro
horizontal
Tipo
DoubleMinMaxBoundsPredicate
Descrizione
No Description Provided
Parametro
absolute
Tipo
DoubleMinMaxBoundsPredicate
Descrizione
No Description Provided

Link to horizontalDistance

Name: horizontalDistance

Return Type: DistancePredicate

ZenScript
Copy
DistancePredicate.horizontalDistance(bounds as DoubleMinMaxBoundsPredicate) as DistancePredicate
ParametroTipoDescrizione
Parametro
bounds
Tipo
DoubleMinMaxBoundsPredicate
Descrizione
No Description Provided

Link to verticalDistance

Name: verticalDistance

Return Type: DistancePredicate

ZenScript
Copy
DistancePredicate.verticalDistance(bounds as DoubleMinMaxBoundsPredicate) as DistancePredicate
ParametroTipoDescrizione
Parametro
bounds
Tipo
DoubleMinMaxBoundsPredicate
Descrizione
No Description Provided

Name: xyz

Return Type: DistancePredicate

ZenScript
Copy
DistancePredicate.xyz(x as DoubleMinMaxBoundsPredicate, y as DoubleMinMaxBoundsPredicate, z as DoubleMinMaxBoundsPredicate) as DistancePredicate
ParametroTipoDescrizione
Parametro
x
Tipo
DoubleMinMaxBoundsPredicate
Descrizione
No Description Provided
Parametro
y
Tipo
DoubleMinMaxBoundsPredicate
Descrizione
No Description Provided
Parametro
z
Tipo
DoubleMinMaxBoundsPredicate
Descrizione
No Description Provided