LocationPredicate

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

Members

static any() as LocationPredicate
script.zs
// LocationPredicate.any() as LocationPredicate;
LocationPredicate.any();

Return Type: LocationPredicate

static at(x as Doubles, y as Doubles, z as Doubles) as LocationPredicate
script.zs
// LocationPredicate.at(x as Doubles, y as Doubles, z as Doubles) as LocationPredicate;
LocationPredicate.at(myDoubles, myDoubles, myDoubles);

Return Type: LocationPredicate

static create() as Builder
script.zs
// LocationPredicate.create() as Builder;
LocationPredicate.create();

Return Type: LocationPredicateBuilder

static inBiome(biome as ResourceLocation) as LocationPredicate
script.zs
// LocationPredicate.inBiome(biome as ResourceLocation) as LocationPredicate;
LocationPredicate.inBiome(myResourceLocation);

Parameters:

Return Type: LocationPredicate

static inBiome(biome as string) as LocationPredicate
script.zs
// LocationPredicate.inBiome(biome as string) as LocationPredicate;
LocationPredicate.inBiome(myString);

Parameters:

biome Type: string

Return Type: LocationPredicate

static inDimension(dimension as ResourceLocation) as LocationPredicate
script.zs
// LocationPredicate.inDimension(dimension as ResourceLocation) as LocationPredicate;
LocationPredicate.inDimension(myResourceLocation);

Parameters:

Return Type: LocationPredicate

static inDimension(dimension as string) as LocationPredicate
script.zs
// LocationPredicate.inDimension(dimension as string) as LocationPredicate;
LocationPredicate.inDimension(myString);

Parameters:

dimension Type: string

Return Type: LocationPredicate

static inStructure(structure as ResourceLocation) as LocationPredicate
script.zs
// LocationPredicate.inStructure(structure as ResourceLocation) as LocationPredicate;
LocationPredicate.inStructure(myResourceLocation);

Parameters:

Return Type: LocationPredicate

static inStructure(structure as string) as LocationPredicate
script.zs
// LocationPredicate.inStructure(structure as string) as LocationPredicate;
LocationPredicate.inStructure(myString);

Parameters:

structure Type: string

Return Type: LocationPredicate