import secret_entrance_data from "../data/secret_entrance_data";
export default class SecretEntranceBlockData {
    static getBlockData() {
        return secret_entrance_data.getBlockData();
    }
    static getSecretEntranceBlockData(block, item) {
        if (!block) {
            return undefined;
        }
        const blockDataSet = SecretEntranceBlockData.getBlockData();
        let blockData = undefined;
        for (let i = 0; i < blockDataSet.blocks.length; i++) {
            if (block.permutation.matches(blockDataSet.blocks[i].name)) {
                if (blockDataSet.blocks[i].supportedTypes?.includes(item)) {
                    blockData = blockDataSet.blocks[i];
                    break;
                }
            }
        }
        return blockData;
    }
}

//# sourceMappingURL=../../../../_SBUNK_BPDebug/fs_sbunk/entity/SecretEntranceBlockData.js.map
