@minecraft
    正在准备搜索索引...

    接口 PrimitiveShapeQueryOptions实验性

    Contains optional filters that control which primitive shapes are returned from a primitive shapes query.

    interface PrimitiveShapeQueryOptions {
        attachedTo?: Entity;
        location?: Vector3;
        maxDistance?: number;
        minDistance?: number;
    }
    索引

    属性

    attachedTo?: Entity

    If specified, only returns shapes attached to this entity.

    location?: Vector3

    Adds a seed location to the query that is used in conjunction with distance properties.

    maxDistance?: number

    If specified, only includes shapes that are less than this distance away from the location specified in the location property.

    minDistance?: number

    If specified, only includes shapes that are at least this distance away from the location specified in the location property.