"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DebugDisplayPlayer = void 0;
const ModCallbackCustom_1 = require("../../../../enums/ModCallbackCustom");
const render_1 = require("../../../../functions/render");
const Feature_1 = require("../../../private/Feature");
const utils_1 = require("./utils");
class DebugDisplayPlayer extends Feature_1.Feature {
    textCallback = utils_1.defaultEntityDisplayCallback;
    constructor() {
        super();
        this.customCallbacksUsed = [
            [
                ModCallbackCustom_1.ModCallbackCustom.POST_PLAYER_RENDER_REORDERED,
                this.postPlayerRenderReordered,
            ],
        ];
    }
    // ModCallbackCustom.POST_PLAYER_RENDER_REORDERED
    postPlayerRenderReordered = (player) => {
        const text = this.textCallback(player);
        (0, render_1.renderTextOnEntity)(player, text);
    };
}
exports.DebugDisplayPlayer = DebugDisplayPlayer;
