LocationPredicateBuilder
Link to locationpredicatebuilder
导入类
Link to 导入类
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 Copyimport crafttweaker.api.predicate.builder.LocationPredicateBuilder;
使用方式
Link to 使用方式
Name: biome
Return Type: LocationPredicateBuilder
ZenScript CopyLocationPredicateBuilder.biome(biome as ResourceLocation) as LocationPredicateBuilder
参数 | 类型 |
---|---|
参数 biome | 类型 资源位置 |
Name: biome
Return Type: LocationPredicateBuilder
ZenScript CopyLocationPredicateBuilder.biome(biome as string) as LocationPredicateBuilder
参数 | 类型 |
---|---|
参数 biome | 类型 string |
Name: block
Return Type: LocationPredicateBuilder
ZenScript CopyLocationPredicateBuilder.block(predicate as BlockPredicate) as LocationPredicateBuilder
参数 | 类型 |
---|---|
参数 predicate | 类型 BlockPredicate |
Name: block
Return Type: LocationPredicateBuilder
ZenScript CopyLocationPredicateBuilder.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 CopyLocationPredicateBuilder.dimension(dimension as ResourceLocation) as LocationPredicateBuilder
参数 | 类型 |
---|---|
参数 dimension | 类型 资源位置 |
Name: dimension
Return Type: LocationPredicateBuilder
ZenScript CopyLocationPredicateBuilder.dimension(dimension as string) as LocationPredicateBuilder
参数 | 类型 |
---|---|
参数 dimension | 类型 string |
Name: fluid
Return Type: LocationPredicateBuilder
ZenScript CopyLocationPredicateBuilder.fluid(predicate as FluidPredicate) as LocationPredicateBuilder
参数 | 类型 |
---|---|
参数 predicate | 类型 FluidPredicate |
Name: fluid
Return Type: LocationPredicateBuilder
ZenScript CopyLocationPredicateBuilder.fluid(predicate as FluidPredicateBuilder) as LocationPredicateBuilder
参数 | 类型 |
---|---|
参数 predicate | 类型 FluidPredicateBuilder |
Name: light
Return Type: LocationPredicateBuilder
ZenScript CopyLocationPredicateBuilder.light(predicate as LightPredicate) as LocationPredicateBuilder
参数 | 类型 |
---|---|
参数 predicate | 类型 LightPredicate |
Name: light
Return Type: LocationPredicateBuilder
ZenScript CopyLocationPredicateBuilder.light(predicate as LightPredicateBuilder) as LocationPredicateBuilder
参数 | 类型 |
---|---|
参数 predicate | 类型 LightPredicateBuilder |
Name: smokey
Return Type: LocationPredicateBuilder
ZenScript CopyLocationPredicateBuilder.smokey(smokey as bool?) as LocationPredicateBuilder
参数 | 类型 | 可选 | 默认值 |
---|---|---|---|
参数 smokey | 类型 bool? | 可选 true | 默认值 true |
Name: structure
Return Type: LocationPredicateBuilder
ZenScript CopyLocationPredicateBuilder.structure(structure as ResourceLocation) as LocationPredicateBuilder
参数 | 类型 |
---|---|
参数 structure | 类型 资源位置 |
Name: structure
Return Type: LocationPredicateBuilder
ZenScript CopyLocationPredicateBuilder.structure(structure as string) as LocationPredicateBuilder
参数 | 类型 |
---|---|
参数 structure | 类型 string |
Name: x
Return Type: LocationPredicateBuilder
ZenScript CopyLocationPredicateBuilder.x(x as DoubleMinMaxBoundsPredicate) as LocationPredicateBuilder
参数 | 类型 |
---|---|
参数 x | 类型 DoubleMinMaxBoundsPredicate |
Name: y
Return Type: LocationPredicateBuilder
ZenScript CopyLocationPredicateBuilder.y(y as DoubleMinMaxBoundsPredicate) as LocationPredicateBuilder
参数 | 类型 |
---|---|
参数 y | 类型 DoubleMinMaxBoundsPredicate |
Name: z
Return Type: LocationPredicateBuilder
ZenScript CopyLocationPredicateBuilder.z(z as DoubleMinMaxBoundsPredicate) as LocationPredicateBuilder
参数 | 类型 |
---|---|
参数 z | 类型 DoubleMinMaxBoundsPredicate |