跳转至

BoundingBoxUtils

文档版本:1.21.0.24

BoundingBoxUtils类。script_api.minecraft/server.boundingboxutils.description

方法

createValid

script_api.minecraft/server.boundingboxutils.createvalid.description

static createValid(min: Vector3, max: Vector3): BoundingBox
dilate

script_api.minecraft/server.boundingboxutils.dilate.description

static dilate(box: BoundingBox, size: Vector3): BoundingBox
equals

script_api.minecraft/server.boundingboxutils.equals.description

static equals(box: BoundingBox, other: BoundingBox): boolean
expand

script_api.minecraft/server.boundingboxutils.expand.description

static expand(box: BoundingBox, other: BoundingBox): BoundingBox
getCenter

script_api.minecraft/server.boundingboxutils.getcenter.description

static getCenter(box: BoundingBox): Vector3
getIntersection

script_api.minecraft/server.boundingboxutils.getintersection.description

static getIntersection(box: BoundingBox, other: BoundingBox): BoundingBox | undefined
getSpan

script_api.minecraft/server.boundingboxutils.getspan.description

static getSpan(box: BoundingBox): Vector3
intersects

script_api.minecraft/server.boundingboxutils.intersects.description

static intersects(box: BoundingBox, other: BoundingBox): boolean
isInside

script_api.minecraft/server.boundingboxutils.isinside.description

static isInside(box: BoundingBox, pos: Vector3): boolean
isValid

script_api.minecraft/server.boundingboxutils.isvalid.description

static isValid(box: BoundingBox): boolean
translate

script_api.minecraft/server.boundingboxutils.translate.description

static translate(box: BoundingBox, delta: Vector3): BoundingBox