LocationPredicate

Link to locationpredicate

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

Name: any

Return Type: LocationPredicate

ZenScript
Copy
// LocationPredicate.any() as LocationPredicate

LocationPredicate.any();

Name: at

Return Type: LocationPredicate

ZenScript
Copy
LocationPredicate.at(x as DoubleMinMaxBoundsPredicate, y as DoubleMinMaxBoundsPredicate, z as DoubleMinMaxBoundsPredicate) as LocationPredicate
ParametroTipo
Parametro
x
Tipo
DoubleMinMaxBoundsPredicate
Parametro
y
Tipo
DoubleMinMaxBoundsPredicate
Parametro
z
Tipo
DoubleMinMaxBoundsPredicate

Name: create

Return Type: LocationPredicateBuilder

ZenScript
Copy
// LocationPredicate.create() as LocationPredicateBuilder

LocationPredicate.create();

Name: inBiome

Return Type: LocationPredicate

ZenScript
Copy
LocationPredicate.inBiome(biome as ResourceLocation) as LocationPredicate
ParametroTipo
Parametro
biome
Tipo
ResourceLocation

Name: inBiome

Return Type: LocationPredicate

ZenScript
Copy
LocationPredicate.inBiome(biome as string) as LocationPredicate
ParametroTipo
Parametro
biome
Tipo
string

Name: inDimension

Return Type: LocationPredicate

ZenScript
Copy
LocationPredicate.inDimension(dimension as ResourceLocation) as LocationPredicate
ParametroTipo
Parametro
dimension
Tipo
ResourceLocation

Name: inDimension

Return Type: LocationPredicate

ZenScript
Copy
LocationPredicate.inDimension(dimension as string) as LocationPredicate
ParametroTipo
Parametro
dimension
Tipo
string

Name: inStructure

Return Type: LocationPredicate

ZenScript
Copy
LocationPredicate.inStructure(structure as ResourceLocation) as LocationPredicate
ParametroTipo
Parametro
structure
Tipo
ResourceLocation

Name: inStructure

Return Type: LocationPredicate

ZenScript
Copy
LocationPredicate.inStructure(structure as string) as LocationPredicate
ParametroTipo
Parametro
structure
Tipo
string