@minecraft/server
    Preparing search index...

    Interface PoiDistancePairBeta

    Associates a block point-of-interest instance with its squared distance from a query center.

    interface PoiDistancePair {
        distance: number;
        poi: PoiBlockInstance;
    }
    Index

    Properties

    Properties

    distance: number

    Squared three-dimensional distance, in blocks squared, from the query center to the POI position.

    POI instance at this distance.