import { system } from "@minecraft/server";
export default class FSActionBar {
    static showActionBar(player, message, colorPrefix = "") {
        let timeout = 0;
        var messageSoFar = "";
        timeout = system.runInterval(() => {
            if (messageSoFar.length < message.length) {
                messageSoFar += message[messageSoFar.length];
                player.onScreenDisplay.setActionBar(`${colorPrefix}${messageSoFar}`);
            }
            else {
                system.clearRun(timeout);
            }
        }, 1);
    }
}

//# sourceMappingURL=../../../../../_SBUNK_BPDebug/fs_sbunk/fs/libs/FSActionBar.js.map
