LocationPredicateBuilder

Link to locationpredicatebuilder

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.

ZenScript
Copy
import crafttweaker.api.predicate.builder.LocationPredicateBuilder;

Name: biome

Return Type: LocationPredicateBuilder

ZenScript
Copy
LocationPredicateBuilder.biome(biome as ResourceLocation) as LocationPredicateBuilder
参数类型
参数
biome
类型
资源位置

Name: biome

Return Type: LocationPredicateBuilder

ZenScript
Copy
LocationPredicateBuilder.biome(biome as string) as LocationPredicateBuilder
参数类型
参数
biome
类型
string

Name: block

Return Type: LocationPredicateBuilder

ZenScript
Copy
LocationPredicateBuilder.block(predicate as BlockPredicate) as LocationPredicateBuilder
参数类型
参数
predicate
类型
BlockPredicate

Name: block

Return Type: LocationPredicateBuilder

ZenScript
Copy
LocationPredicateBuilder.block(predicate as BlockPredicateBuilder) as LocationPredicateBuilder
参数类型
参数
predicate
类型
BlockPredicateBuilder

Name: build

Return Type: LocationPredicate

ZenScript
Copy
// LocationPredicateBuilder.build() as LocationPredicate

myLocationPredicateBuilder.build();

Name: dimension

Return Type: LocationPredicateBuilder

ZenScript
Copy
LocationPredicateBuilder.dimension(dimension as ResourceLocation) as LocationPredicateBuilder
参数类型
参数
dimension
类型
资源位置

Name: dimension

Return Type: LocationPredicateBuilder

ZenScript
Copy
LocationPredicateBuilder.dimension(dimension as string) as LocationPredicateBuilder
参数类型
参数
dimension
类型
string

Name: fluid

Return Type: LocationPredicateBuilder

ZenScript
Copy
LocationPredicateBuilder.fluid(predicate as FluidPredicate) as LocationPredicateBuilder
参数类型
参数
predicate
类型
FluidPredicate

Name: fluid

Return Type: LocationPredicateBuilder

ZenScript
Copy
LocationPredicateBuilder.fluid(predicate as FluidPredicateBuilder) as LocationPredicateBuilder
参数类型
参数
predicate
类型
FluidPredicateBuilder

Name: light

Return Type: LocationPredicateBuilder

ZenScript
Copy
LocationPredicateBuilder.light(predicate as LightPredicate) as LocationPredicateBuilder
参数类型
参数
predicate
类型
LightPredicate

Name: light

Return Type: LocationPredicateBuilder

ZenScript
Copy
LocationPredicateBuilder.light(predicate as LightPredicateBuilder) as LocationPredicateBuilder
参数类型
参数
predicate
类型
LightPredicateBuilder

Name: smokey

Return Type: LocationPredicateBuilder

ZenScript
Copy
LocationPredicateBuilder.smokey(smokey as bool?) as LocationPredicateBuilder
参数类型可选默认值
参数
smokey
类型
bool?
可选
true
默认值
true

Name: structure

Return Type: LocationPredicateBuilder

ZenScript
Copy
LocationPredicateBuilder.structure(structure as ResourceLocation) as LocationPredicateBuilder
参数类型
参数
structure
类型
资源位置

Name: structure

Return Type: LocationPredicateBuilder

ZenScript
Copy
LocationPredicateBuilder.structure(structure as string) as LocationPredicateBuilder
参数类型
参数
structure
类型
string

Name: x

Return Type: LocationPredicateBuilder

ZenScript
Copy
LocationPredicateBuilder.x(x as DoubleMinMaxBoundsPredicate) as LocationPredicateBuilder
参数类型
参数
x
类型
DoubleMinMaxBoundsPredicate

Name: y

Return Type: LocationPredicateBuilder

ZenScript
Copy
LocationPredicateBuilder.y(y as DoubleMinMaxBoundsPredicate) as LocationPredicateBuilder
参数类型
参数
y
类型
DoubleMinMaxBoundsPredicate

Name: z

Return Type: LocationPredicateBuilder

ZenScript
Copy
LocationPredicateBuilder.z(z as DoubleMinMaxBoundsPredicate) as LocationPredicateBuilder
参数类型
参数
z
类型
DoubleMinMaxBoundsPredicate