"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DebugDisplaySpikes = 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 DebugDisplaySpikes extends Feature_1.Feature {
    textCallback = utils_1.defaultGridEntityDisplayCallback;
    constructor() {
        super();
        this.customCallbacksUsed = [
            [ModCallbackCustom_1.ModCallbackCustom.POST_SPIKES_RENDER, this.postSpikesRender],
        ];
    }
    // ModCallbackCustom.POST_SPIKES_RENDER
    postSpikesRender = (spikes) => {
        const text = this.textCallback(spikes);
        (0, render_1.renderTextOnEntity)(spikes, text);
    };
}
exports.DebugDisplaySpikes = DebugDisplaySpikes;
