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
static create() as Builder
script.zs
// LocationPredicate.create() as LocationPredicateBuilder;
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

matches(level as ServerLevel, x as double, y as double, z as double) as bool
script.zs
// LocationPredicate.matches(level as ServerLevel, x as double, y as double, z as double) as bool;
myLocationPredicate.matches(myServerLevel, myDouble, myDouble, myDouble);

Parameters:

level Type: ServerLevel
x Type: double
y Type: double
z Type: double

Return Type: bool