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.
import crafttweaker.api.predicate.LocationPredicate;Static Methods
Return Type: LocationPredicate
// LocationPredicate.any() as LocationPredicate
LocationPredicate.any();Return Type: LocationPredicate
LocationPredicate.at(x as DoubleMinMaxBoundsPredicate, y as DoubleMinMaxBoundsPredicate, z as DoubleMinMaxBoundsPredicate) as LocationPredicate| Parameter | Type |
|---|---|
Parameter x | Type DoubleMinMaxBoundsPredicate |
Parameter y | Type DoubleMinMaxBoundsPredicate |
Parameter z | Type DoubleMinMaxBoundsPredicate |
Return Type: LocationPredicateBuilder
// LocationPredicate.create() as LocationPredicateBuilder
LocationPredicate.create();Return Type: LocationPredicate
LocationPredicate.inBiome(biome as ResourceLocation) as LocationPredicate| Parameter | Type |
|---|---|
Parameter biome | Type ResourceLocation |
Return Type: LocationPredicate
LocationPredicate.inBiome(biome as string) as LocationPredicate| Parameter | Type |
|---|---|
Parameter biome | Type string |
Return Type: LocationPredicate
LocationPredicate.inDimension(dimension as ResourceLocation) as LocationPredicate| Parameter | Type |
|---|---|
Parameter dimension | Type ResourceLocation |
Return Type: LocationPredicate
LocationPredicate.inDimension(dimension as string) as LocationPredicate| Parameter | Type |
|---|---|
Parameter dimension | Type string |
Return Type: LocationPredicate
LocationPredicate.inStructure(structure as ResourceLocation) as LocationPredicate| Parameter | Type |
|---|---|
Parameter structure | Type ResourceLocation |
Return Type: LocationPredicate
LocationPredicate.inStructure(structure as string) as LocationPredicate| Parameter | Type |
|---|---|
Parameter structure | Type string |
Methods
Return Type: boolean
LocationPredicate.matches(level as ServerLevel, x as double, y as double, z as double) as boolean| Parameter | Type |
|---|---|
Parameter level | Type ServerLevel |
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |