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.
import crafttweaker.api.predicate.LocationPredicate;Members
static any() as LocationPredicate
static at(x as Doubles, y as Doubles, z as Doubles) as LocationPredicate
// LocationPredicate.at(x as DoubleMinMaxBoundsPredicate, y as DoubleMinMaxBoundsPredicate, z as DoubleMinMaxBoundsPredicate) as LocationPredicate;LocationPredicate.at(myDoubles, myDoubles, myDoubles);Parameters:
Return Type:
LocationPredicate
static create() as Builder
static inBiome(biome as ResourceLocation) as LocationPredicate
LocationPredicate.inBiome(myResourceLocation);Parameters:
biome: ResourceLocation Type: ResourceLocation
Return Type:
LocationPredicate
static inBiome(biome as string) as LocationPredicate
LocationPredicate.inBiome(myString);Parameters:
biome: string Type: string
Return Type:
LocationPredicate
static inDimension(dimension as ResourceLocation) as LocationPredicate
LocationPredicate.inDimension(myResourceLocation);Parameters:
dimension: ResourceLocation Type: ResourceLocation
Return Type:
LocationPredicate
static inDimension(dimension as string) as LocationPredicate
LocationPredicate.inDimension(myString);Parameters:
dimension: string Type: string
Return Type:
LocationPredicate
static inStructure(structure as ResourceLocation) as LocationPredicate
LocationPredicate.inStructure(myResourceLocation);Parameters:
structure: ResourceLocation Type: ResourceLocation
Return Type:
LocationPredicate
static inStructure(structure as string) as LocationPredicate
LocationPredicate.inStructure(myString);Parameters:
structure: string Type: string
Return Type:
LocationPredicate
matches(level as ServerLevel, x as double, y as double, z as double) as bool
myLocationPredicate.matches(myServerLevel, myDouble, myDouble, myDouble);Parameters:
level: ServerLevel Type: ServerLevel x: double Type: double y: double Type: double z: double Type: double
Return Type:
bool