LocationPredicate

Importing the class

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.

script.zs
import crafttweaker.api.predicate.LocationPredicate;

Static Methods

Return Type: LocationPredicate

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

Return Type: LocationPredicate

script.zs
LocationPredicate.at(x as DoubleMinMaxBoundsPredicate, y as DoubleMinMaxBoundsPredicate, z as DoubleMinMaxBoundsPredicate) as LocationPredicate
ParameterType
Parameter
x
Type
DoubleMinMaxBoundsPredicate
Parameter
y
Type
DoubleMinMaxBoundsPredicate
Parameter
z
Type
DoubleMinMaxBoundsPredicate

Return Type: LocationPredicateBuilder

script.zs
// LocationPredicate.create() as LocationPredicateBuilder
LocationPredicate.create();

Return Type: LocationPredicate

script.zs
LocationPredicate.inBiome(biome as ResourceLocation) as LocationPredicate
ParameterType
Parameter
biome
Type
ResourceLocation

Return Type: LocationPredicate

script.zs
LocationPredicate.inBiome(biome as string) as LocationPredicate
ParameterType
Parameter
biome
Type
string

Return Type: LocationPredicate

script.zs
LocationPredicate.inDimension(dimension as ResourceLocation) as LocationPredicate
ParameterType
Parameter
dimension
Type
ResourceLocation

Return Type: LocationPredicate

script.zs
LocationPredicate.inDimension(dimension as string) as LocationPredicate
ParameterType
Parameter
dimension
Type
string

Return Type: LocationPredicate

script.zs
LocationPredicate.inStructure(structure as ResourceLocation) as LocationPredicate
ParameterType
Parameter
structure
Type
ResourceLocation

Return Type: LocationPredicate

script.zs
LocationPredicate.inStructure(structure as string) as LocationPredicate
ParameterType
Parameter
structure
Type
string